Commit f57f1ee6 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[v8] Avoid deprecated API

The type check for "WasmModuleObject" was renamed from
"IsWebAssemblyCompiledModule" to "IsWasmModuleObject" in
https://crrev.com/c/2013109.
This CL switches the only caller in chrome to the new API, so we can
deprecate the old one.

R=haraken@chromium.org

Bug: v8:10021
Change-Id: Ibf4d59933ce91086eb3edd1769aae2e3da2a9368
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2016622Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734393}
parent 7cf3fe30
...@@ -525,7 +525,7 @@ static bool WasmInstanceOverride( ...@@ -525,7 +525,7 @@ static bool WasmInstanceOverride(
if (!WTF::IsMainThread() || args.Length() < 1) if (!WTF::IsMainThread() || args.Length() < 1)
return false; return false;
v8::Local<v8::Value> source = args[0]; v8::Local<v8::Value> source = args[0];
if (!source->IsWebAssemblyCompiledModule()) if (!source->IsWasmModuleObject())
return false; return false;
v8::CompiledWasmModule compiled_module = v8::CompiledWasmModule compiled_module =
......
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