summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1462353.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/generators/bug1462353.js')
-rw-r--r--js/src/jit-test/tests/generators/bug1462353.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/generators/bug1462353.js b/js/src/jit-test/tests/generators/bug1462353.js
new file mode 100644
index 0000000000..9140a38339
--- /dev/null
+++ b/js/src/jit-test/tests/generators/bug1462353.js
@@ -0,0 +1,11 @@
+class Base {}
+class Derived extends Base {
+ constructor() {
+ var fun = async() => {
+ for (var i = 0; i < 20; i++) {} // Trigger OSR.
+ super();
+ };
+ fun();
+ }
+}
+d = new Derived();