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

Unified Diff: test/mjsunit/regress/regress-crbug-658528.js

Issue 2447783002: [ignition] Use more-targeted check for CONST-this-initialization hole check (Closed)
Patch Set: Fix the interpreter instead of the parser Created 4 years, 2 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 | « src/interpreter/bytecode-generator.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-crbug-658528.js
diff --git a/test/mjsunit/ignition/dead-code-source-position.js b/test/mjsunit/regress/regress-crbug-658528.js
similarity index 73%
copy from test/mjsunit/ignition/dead-code-source-position.js
copy to test/mjsunit/regress/regress-crbug-658528.js
index 95bb9183b880229a703e58503e9aec2a673015aa..a6b07482b7fd3de346394b91384aa9cbe0dc4122 100644
--- a/test/mjsunit/ignition/dead-code-source-position.js
+++ b/test/mjsunit/regress/regress-crbug-658528.js
@@ -3,7 +3,8 @@
// found in the LICENSE file.
function f() {
- for (f(x) in []) { f(new f()) }
+ eval("var x = 1");
+ const x = 2;
}
-f();
+assertThrows(f, SyntaxError);
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698