Skip to content

Set a default encoding so that mu_pp doesn't raise an error. - #12

Open
dougo wants to merge 1 commit into
aostrega:masterfrom
dougo:set-default-encoding
Open

Set a default encoding so that mu_pp doesn't raise an error.#12
dougo wants to merge 1 commit into
aostrega:masterfrom
dougo:set-default-encoding

Conversation

@dougo

@dougo dougo commented Jul 4, 2016

Copy link
Copy Markdown
Contributor

When Encoding.default_external is nil (which it is in Opal by default), mu_pp raises an error, e.g. when pretty-printing a value in a failed assertion message. I don't know why Opal doesn't set this by default (e.g. from the document encoding); might be a bug. We can remove this line if that changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant