Commit 0abef58f authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

Avoid deprecated wasm API

The API was rewritten in https://crrev.com/c/1363140. This CL changes
chromium code to use the new API.

R=mlippautz@chromium.org

Bug: chromium:912031
Change-Id: I10493dd711b565217fcdb437bb70fa380b4cfa84
Reviewed-on: https://chromium-review.googlesource.com/c/1373749Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615858}
parent efd5faa9
...@@ -552,9 +552,9 @@ static bool WasmInstanceOverride( ...@@ -552,9 +552,9 @@ static bool WasmInstanceOverride(
if (!source->IsWebAssemblyCompiledModule()) if (!source->IsWebAssemblyCompiledModule())
return false; return false;
v8::Local<v8::WasmModuleObject> module = v8::CompiledWasmModule compiled_module =
v8::Local<v8::WasmModuleObject>::Cast(source); v8::Local<v8::WasmModuleObject>::Cast(source)->GetCompiledModule();
if (module->GetWasmWireBytesRef().size > kWasmWireBytesLimit) { if (compiled_module.GetWireBytesRef().size() > kWasmWireBytesLimit) {
ThrowRangeException( ThrowRangeException(
args.GetIsolate(), args.GetIsolate(),
"WebAssembly.Instance is disallowed on the main thread, " "WebAssembly.Instance is disallowed on the main thread, "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment