summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 42874f209..a8fd6b1da 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -361,13 +361,12 @@ impl MainWorker {
pub fn bootstrap(&mut self, options: &BootstrapOptions) {
let scope = &mut self.js_runtime.handle_scope();
- let options_v8 =
- deno_core::serde_v8::to_v8(scope, options.as_json()).unwrap();
+ let args = options.as_v8(scope);
let bootstrap_fn = self.bootstrap_fn_global.take().unwrap();
let bootstrap_fn = v8::Local::new(scope, bootstrap_fn);
let undefined = v8::undefined(scope);
bootstrap_fn
- .call(scope, undefined.into(), &[options_v8])
+ .call(scope, undefined.into(), &[args.into()])
.unwrap();
}