summaryrefslogtreecommitdiff
path: root/core/core_isolate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/core_isolate.rs')
-rw-r--r--core/core_isolate.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/core_isolate.rs b/core/core_isolate.rs
index 5ddc6571b..984a6a2a6 100644
--- a/core/core_isolate.rs
+++ b/core/core_isolate.rs
@@ -315,7 +315,7 @@ impl CoreIsolate {
match v8::Script::compile(scope, context, source, Some(&origin)) {
Some(script) => script,
None => {
- let exception = tc.exception().unwrap();
+ let exception = tc.exception(scope).unwrap();
return exception_to_err_result(scope, exception);
}
};
@@ -324,7 +324,7 @@ impl CoreIsolate {
Some(_) => Ok(()),
None => {
assert!(tc.has_caught());
- let exception = tc.exception().unwrap();
+ let exception = tc.exception(scope).unwrap();
exception_to_err_result(scope, exception)
}
}
@@ -571,7 +571,7 @@ fn async_op_response<'s>(
None => js_recv_cb.call(scope, context, global, &[]),
};
- match tc.exception() {
+ match tc.exception(scope) {
None => Ok(()),
Some(exception) => exception_to_err_result(scope, exception),
}
@@ -602,7 +602,7 @@ fn drain_macrotasks<'s>(
let is_done = js_macrotask_cb.call(scope, context, global, &[]);
- if let Some(exception) = tc.exception() {
+ if let Some(exception) = tc.exception(scope) {
return exception_to_err_result(scope, exception);
}