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

Unified Diff: test/mjsunit/strict-mode.js

Issue 6386014: Fix V8 bug 1084 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
« src/scanner-base.cc ('K') | « src/scanner-base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strict-mode.js
diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js
index 6f3a2441342d24541202e78b6d8729c1cd989c9f..e6922c59b46bbb0ebf86147e573b63804f9a10b9 100644
--- a/test/mjsunit/strict-mode.js
+++ b/test/mjsunit/strict-mode.js
@@ -150,6 +150,12 @@ CheckStrictMode("'Hello octal\\032'");
CheckStrictMode("function octal() { return 012; }");
CheckStrictMode("function octal() { return '\\032'; }");
+function ValidEscape() {
+ "use strict";
+ var x = '\0';
+ var y = "\0";
+}
+
Lasse Reichstein 2011/01/31 06:05:19 If the preparser marks this function as lazy (whic
Martin Maly 2011/01/31 22:44:06 Done. The pereparser work is on my todo list.
// Octal before "use strict"
assertThrows('\
function strict() {\
« src/scanner-base.cc ('K') | « src/scanner-base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698