summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/es6/regress/regress-6322.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/es6/regress/regress-6322.js')
-rw-r--r--deps/v8/test/mjsunit/es6/regress/regress-6322.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/es6/regress/regress-6322.js b/deps/v8/test/mjsunit/es6/regress/regress-6322.js
index 41f66171ed..8ec49fb0c8 100644
--- a/deps/v8/test/mjsunit/es6/regress/regress-6322.js
+++ b/deps/v8/test/mjsunit/es6/regress/regress-6322.js
@@ -4,3 +4,8 @@
// Crash with --verify-heap
(function*() { for (let { a = class b { } } of [{}]) { } })().next();
+(function() { for (let { a = class b { } } of [{}]) { } })();
+(function() { var a; for ({ a = class b { } } of [{}]) { } })();
+
+(function() { for (let [a = class b { } ] = [[]]; ;) break; })();
+(function() { var a; for ([a = class b { } ] = [[]]; ;) break; })();