Chromium Code Reviews| 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() { |
|
kozy
2016/11/16 16:44:53
We prefer to use debug-interface.h instead of intr
Clemens Hammacher
2016/11/16 16:57:31
This is script wrapper, but it will also go away s
|
| + 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, |
| ] |
| ); |