summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/fields/access.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/fields/access.js')
-rw-r--r--js/src/jit-test/tests/fields/access.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/fields/access.js b/js/src/jit-test/tests/fields/access.js
new file mode 100644
index 0000000000..e24ddefaef
--- /dev/null
+++ b/js/src/jit-test/tests/fields/access.js
@@ -0,0 +1,9 @@
+class C {
+ x = 5;
+}
+
+c = new C();
+assertEq(5, c.x);
+
+if (typeof reportCompare === "function")
+ reportCompare(true, true);