summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalGetThis.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_6/Class/derivedConstructorArrowEvalGetThis.js')
-rw-r--r--js/src/tests/ecma_6/Class/derivedConstructorArrowEvalGetThis.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalGetThis.js b/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalGetThis.js
new file mode 100644
index 000000000..26f9843d2
--- /dev/null
+++ b/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalGetThis.js
@@ -0,0 +1,10 @@
+new class extends class { } {
+ constructor() {
+ super();
+ assertEq(this, (()=>this)());
+ assertEq(this, eval("this"));
+ }
+}();
+
+if (typeof reportCompare === 'function')
+ reportCompare(0,0,"OK");