summaryrefslogtreecommitdiff
path: root/core/bindings.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-08-21 11:47:57 +0200
committerBert Belder <bertbelder@gmail.com>2020-08-21 13:11:04 +0200
commitfd83df7cdb983030ba111a1e19ad6c9ef5eb6128 (patch)
tree26ef2bbf905e14b2405e60cd10ab4a77b66adc00 /core/bindings.rs
parent679a190fcd04116459436353225cd74a567dbe85 (diff)
Convert the remaining http_bench ops to json ops (#7143)
Diffstat (limited to 'core/bindings.rs')
-rw-r--r--core/bindings.rs3
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;
}
};