Unpaired surrogates: Document the -Z flag in the panic message.

This commit is contained in:
Simon Sapin 2015-07-13 20:58:21 +02:00
parent e4dc608c0a
commit a5b6cb6b43

View file

@ -373,7 +373,8 @@ pub fn jsstring_to_str(cx: *mut JSContext, s: *mut JSString) -> DOMString {
error!(message!());
s.push('\u{FFFD}');
} else {
panic!(message!());
panic!(concat!(message!(), " Use `-Z replace-surrogates` \
on the command line to make this non-fatal."));
}
}
}