summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js')
-rw-r--r--js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js b/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js
new file mode 100644
index 000000000..d6b15baab
--- /dev/null
+++ b/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js
@@ -0,0 +1,12 @@
+// Make sure it doesn't matter when we make the arrow function
+new class extends class { } {
+ constructor() {
+ let arrow = () => this;
+ assertThrowsInstanceOf(arrow, ReferenceError);
+ super();
+ assertEq(arrow(), this);
+ }
+}();
+
+if (typeof reportCompare === 'function')
+ reportCompare(0,0,"OK");