0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-21 15:04:33 -05:00
This commit is contained in:
Bartek Iwańczuk 2022-05-20 14:34:28 +02:00 committed by Bert Belder
parent 15c9a52781
commit dc66ab10fc
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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);
}