| Index: src/js/messages.js
|
| diff --git a/src/js/messages.js b/src/js/messages.js
|
| index 3ea2bef5ad49d022dc036a780c55a888ff58f387..a0500bf4295d9576778cadabdafdec618b7eaa21 100644
|
| --- a/src/js/messages.js
|
| +++ b/src/js/messages.js
|
| @@ -60,6 +60,17 @@ function ScriptNameOrSourceURL() {
|
| }
|
|
|
|
|
| +/**
|
| + * Check whether the script is a WebAssembly (wasm) script.
|
| + *
|
| + * @return {boolean} true if this is a wasm script
|
| + */
|
| +function ScriptIsWasm() {
|
| + let kWasmScriptType = 3;
|
| + return this.type == kWasmScriptType;
|
| +}
|
| +
|
| +
|
| utils.SetUpLockedPrototype(Script, [
|
| "source",
|
| "name",
|
| @@ -70,6 +81,7 @@ utils.SetUpLockedPrototype(Script, [
|
| ], [
|
| "locationFromPosition", ScriptLocationFromPosition,
|
| "nameOrSourceURL", ScriptNameOrSourceURL,
|
| + "isWasm", ScriptIsWasm,
|
| ]
|
| );
|
|
|
|
|