From fd83df7cdb983030ba111a1e19ad6c9ef5eb6128 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 21 Aug 2020 11:47:57 +0200 Subject: Convert the remaining http_bench ops to json ops (#7143) --- core/bindings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/bindings.rs') 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; } }; -- cgit v1.2.3