Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: src/js/messages.js

Issue 2493773003: [inspector] Introduce translation of wasm frames (Closed)
Patch Set: Fix last patch Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
]
);

Powered by Google App Engine
This is Rietveld 408576698