Remove the JSAutoCompartment from report_pending_exception.

It doesn't really belong there.
This commit is contained in:
Ms2ger 2016-08-26 17:58:46 +02:00
parent 3b11c5ea2d
commit 5662f0d346
5 changed files with 11 additions and 10 deletions

View file

@ -952,7 +952,7 @@ impl<'a, T: Reflectable> ScriptHelpers for &'a T {
code.len() as libc::size_t,
rval) {
debug!("error evaluating JS string");
report_pending_exception(cx, globalhandle.get());
report_pending_exception(cx);
}
}