summaryrefslogtreecommitdiff
path: root/core/es_isolate.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-03-02 14:20:16 -0800
committerBert Belder <bertbelder@gmail.com>2020-03-02 14:20:16 -0800
commiteafd40feabaf14f9f88748c66fa319519fd69072 (patch)
treeccb3a5848fec4bc013aad774fc9c9bda2f894043 /core/es_isolate.rs
parent3fcbf8789e7f873f8a562b200ab82ea7cec173d8 (diff)
Do not convert exceptions to JSON and back (#4214)
Diffstat (limited to 'core/es_isolate.rs')
-rw-r--r--core/es_isolate.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/es_isolate.rs b/core/es_isolate.rs
index bc412c7b2..a43358a24 100644
--- a/core/es_isolate.rs
+++ b/core/es_isolate.rs
@@ -173,8 +173,8 @@ impl EsIsolate {
/// Instantiates a ES module
///
/// ErrBox can be downcast to a type that exposes additional information about
- /// the V8 exception. By default this type is CoreJSError, however it may be a
- /// different type if Isolate::set_js_error_create() has been used.
+ /// the V8 exception. By default this type is JSError, however it may be a
+ /// different type if Isolate::set_js_error_create_fn() has been used.
fn mod_instantiate(&mut self, id: ModuleId) -> Result<(), ErrBox> {
let v8_isolate = self.core_isolate.v8_isolate.as_mut().unwrap();
let js_error_create_fn = &*self.core_isolate.js_error_create_fn;
@@ -218,8 +218,8 @@ impl EsIsolate {
/// Evaluates an already instantiated ES module.
///
/// ErrBox can be downcast to a type that exposes additional information about
- /// the V8 exception. By default this type is CoreJSError, however it may be a
- /// different type if Isolate::set_js_error_create() has been used.
+ /// the V8 exception. By default this type is JSError, however it may be a
+ /// different type if Isolate::set_js_error_create_fn() has been used.
pub fn mod_evaluate(&mut self, id: ModuleId) -> Result<(), ErrBox> {
let core_isolate = &mut self.core_isolate;
let v8_isolate = core_isolate.v8_isolate.as_mut().unwrap();