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

Unified Diff: src/runtime.js

Issue 88653003: Add literal handling to experimental scanner. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Landing Created 7 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
« no previous file with comments | « src/preparser.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index 19b858b27ed90cce80cb5aac06b2a1ed8482bf87..0265b1a631edf1b138f12978a99bc9b822432383 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -643,7 +643,11 @@ function DefaultNumber(x) {
if (%IsPrimitive(s)) return s;
}
+ var xx = %MakeTypeError('cannot_convert_to_primitive', []);
+ %DebugPrint(xx);
+
throw %MakeTypeError('cannot_convert_to_primitive', []);
+ test; test;
}
// ECMA-262, section 8.6.2.6, page 28.
« no previous file with comments | « src/preparser.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698