summaryrefslogtreecommitdiff
path: root/js/src/jit-test
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-07-13 23:12:12 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:42 -0400
commit1c28c2f9bdd0bde2d83bda1416e33a18c88bba02 (patch)
treee5f2022cbd0841cec5d7d71b268c8c7dc3af5556 /js/src/jit-test
parent1e700e18f082c81b68452c805d1805e2a3dcfae2 (diff)
downloaduxp-1c28c2f9bdd0bde2d83bda1416e33a18c88bba02.tar.gz
1359622 - Fix assert for calling Function.toString on class constructors when the compartment has had source discarded.
Diffstat (limited to 'js/src/jit-test')
-rw-r--r--js/src/jit-test/tests/class/bug1359622.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/class/bug1359622.js b/js/src/jit-test/tests/class/bug1359622.js
new file mode 100644
index 0000000000..b4a0df7490
--- /dev/null
+++ b/js/src/jit-test/tests/class/bug1359622.js
@@ -0,0 +1,4 @@
+setDiscardSource(true)
+evaluate(`
+ unescape(class get { static staticMethod() {} });
+`);