src: remove deprecated wasm type check

This removes uses of the "IsWebAssemblyCompiledModule" method, which is
deprecated in V8 v8.1 and will be removed in v8.2.
We could replace it by "IsWasmModuleObject", but since it's unused in
node anyway, I just remove the definition.

PR-URL: https://github.com/nodejs/node/pull/32116
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Clemens Backes authored and Matheus Marchini committed 2020-03-18 16:37:19 -07:00
1 parent c080b2d821
commit a63db7fb5e
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -1891,8 +1891,11 @@ util.types.isWeakSet(new WeakSet()); // Returns true
### `util.types.isWebAssemblyCompiledModule(value)`
<!-- YAML
added: v10.0.0
deprecated: REPLACEME
-->
> Stability: 0 - Deprecated: Use `value instanceof WebAssembly.Module` instead.
* `value` {any}
* Returns: {boolean}
-1
View File
@@ -35,7 +35,6 @@ namespace {
V(DataView) \
V(SharedArrayBuffer) \
V(Proxy) \
V(WebAssemblyCompiledModule) \
V(ModuleNamespaceObject) \