mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 15:04:33 -05:00
temp
This commit is contained in:
parent
15c9a52781
commit
dc66ab10fc
1 changed files with 5 additions and 1 deletions
|
@ -3522,7 +3522,11 @@ fn snapshot_creator() {
|
|||
let source = v8::String::new(scope, "b = 2 + 3").unwrap();
|
||||
let script = v8::Script::compile(scope, source, None).unwrap();
|
||||
script.run(scope).unwrap();
|
||||
|
||||
}
|
||||
{
|
||||
let scope = &mut v8::HandleScope::new(&mut isolate);
|
||||
// isolate.context_dis
|
||||
let context = v8::Context::new(scope);
|
||||
snapshot_creator.set_default_context(context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue