[wasm] TransferrableWasModules test: Properly disposte Isolate
Bug: Change-Id: I824f42cf6159f94204ee3e3c26a6af18e717b11e Reviewed-on: https://chromium-review.googlesource.com/702874 Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#48327}
This commit is contained in:
parent
99203eeaa3
commit
f84d216ff9
@ -564,6 +564,7 @@ TEST(TransferrableWasmModules) {
|
||||
create_params.array_buffer_allocator =
|
||||
from_isolate->array_buffer_allocator();
|
||||
v8::Isolate* to_isolate = v8::Isolate::New(create_params);
|
||||
{
|
||||
v8::HandleScope new_scope(to_isolate);
|
||||
v8::Local<v8::Context> deserialization_context =
|
||||
v8::Context::New(to_isolate);
|
||||
@ -572,6 +573,8 @@ TEST(TransferrableWasmModules) {
|
||||
v8::WasmCompiledModule::FromTransferrableModule(to_isolate, store[0]);
|
||||
CHECK(!mod.IsEmpty());
|
||||
}
|
||||
to_isolate->Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
TEST(MemorySize) {
|
||||
|
Loading…
Reference in New Issue
Block a user