diff options
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/bindings.rs b/core/bindings.rs index 1c76cf56f..f0181a227 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -381,7 +381,8 @@ fn send( Err(err) => { let msg = format!("invalid op id: {}", err); let msg = v8::String::new(scope, &msg).unwrap(); - scope.throw_exception(msg.into()); + let exc = v8::Exception::type_error(scope, msg); + scope.throw_exception(exc); return; } }; |