diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 3bc424ebe..370e3f297 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -105,8 +105,8 @@ impl Worker { let mut isolate = deno_core::EsIsolate::new(loader, startup_data, false); let global_state_ = state.borrow().global_state.clone(); - isolate.set_js_error_create(move |v8_exception| { - JSError::from_v8_exception(v8_exception, &global_state_.ts_compiler) + isolate.set_js_error_create_fn(move |core_js_error| { + JSError::create(core_js_error, &global_state_.ts_compiler) }); let (internal_channels, external_channels) = create_channels(); |