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

Unified Diff: test/debugger/test-api.js

Issue 2519773003: [debug] Add Eval scope type to inspector protocol (Closed)
Patch Set: 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: test/debugger/test-api.js
diff --git a/test/debugger/test-api.js b/test/debugger/test-api.js
index f78b1171af005584399edd907a86d5682d543bd5..347fc0b6301f868b044a5a64eb2fcfaf73b7d7bb 100644
--- a/test/debugger/test-api.js
+++ b/test/debugger/test-api.js
@@ -390,6 +390,7 @@ class DebugWrapper {
case "catch": return this.ScopeType.Catch;
case "block": return this.ScopeType.Block;
case "script": return this.ScopeType.Script;
+ case "eval": return this.ScopeType.Eval;
default: %AbortJS("Unexpected scope type");
}
}
@@ -404,7 +405,7 @@ class DebugWrapper {
}
}
- if (found == null) return { isUndefined : true }
+ if (found == null) return { isUndefined : () => true };
const val = { value : () => found.value.value };
return { value : () => val,

Powered by Google App Engine
This is Rietveld 408576698