Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a `-Z replace-surrogates` command-line option. #6614

Merged
merged 3 commits into from Jul 14, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Use error! instead of warn! to get console output by default.

  • Loading branch information
SimonSapin committed Jul 13, 2015
commit e4dc608c0aa2f3c353b3ce9f96853cf0e7115dde
@@ -370,7 +370,7 @@ pub fn jsstring_to_str(cx: *mut JSContext, s: *mut JSString) -> DOMString {
}
}
if ::util::opts::get().replace_surrogates {
warn!(message!());
error!(message!());
s.push('\u{FFFD}');
} else {
panic!(message!());
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.