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

Unified Diff: test/mjsunit/regress/regress-455212.js

Issue 902703002: templates: Don't check IsLineTerminator() if character is negative (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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.cc ('K') | « src/scanner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-455212.js
diff --git a/test/mjsunit/eval-typeof-non-existing.js b/test/mjsunit/regress/regress-455212.js
similarity index 88%
copy from test/mjsunit/eval-typeof-non-existing.js
copy to test/mjsunit/regress/regress-455212.js
index 8cc6d0bcd3310b71c87b7c2620ef2e38ad6ebc44..f2fd033c3d0836a60f603837af31cd2a96662562 100644
--- a/test/mjsunit/eval-typeof-non-existing.js
+++ b/test/mjsunit/regress/regress-455212.js
@@ -28,8 +28,6 @@
// Typeof expression must resolve to 'undefined' when it used on a
// non-existing property. It is *not* allowed to throw a
// ReferenceError.
-assertEquals('undefined', typeof xxx);
-assertEquals('undefined', eval('typeof xxx'));
-assertThrows('typeof(true ? xxx : yyy)', ReferenceError);
-assertThrows('with ({}) { typeof(true ? xxx : yyy) }', ReferenceError);
+// eval("\u0060\u005c") is an unterminated template string (\u0060)
+assertThrows("\u0060\u005c", SyntaxError);
« src/scanner.cc ('K') | « src/scanner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698