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

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

Issue 2634523002: [debugger] whitelist some builtins as side-effect free. (Closed)
Patch Set: fix Created 3 years, 11 months 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
« no previous file with comments | « test/debugger/debug/debug-evaluate-no-side-effect-builtins.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/test-api.js
diff --git a/test/debugger/test-api.js b/test/debugger/test-api.js
index 13aaf686c12527f264485d0576441eaf4ece11d3..13c0a2d85aea7c0ca639127f76696539d3c79cd7 100644
--- a/test/debugger/test-api.js
+++ b/test/debugger/test-api.js
@@ -657,8 +657,13 @@ class DebugWrapper {
isUndefined = true;
break;
}
+ case "number": {
+ if (obj.description === "NaN") {
+ value = NaN;
+ }
+ break;
+ }
case "string":
- case "number":
case "boolean": {
break;
}
« no previous file with comments | « test/debugger/debug/debug-evaluate-no-side-effect-builtins.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698