summaryrefslogtreecommitdiff
path: root/core/core_isolate.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-06-03 12:19:21 -0400
committerGitHub <noreply@github.com>2020-06-03 12:19:21 -0400
commitaa39dfc62f8fc88ebb3dfb01fbc979f30557ca9a (patch)
tree7849daf8110f550e35bba7325475b4482714b6f9 /core/core_isolate.rs
parenta90d9fbd348db922c33f45af834bd3b89574b4a9 (diff)
upgrade: rusty_v8 0.5.0 (#6070)
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);
}