summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-07-14 10:24:25 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:44 -0400
commit10227d77bfccda845a63e20b22bc4367ecc7b4e0 (patch)
tree8cc9ae0ab1315e3e4e438f31febc80ad208e1245 /js/src/jit-test/tests
parent3e1a8a74f2fc69f9df6f18ab19f5095722da7a60 (diff)
downloadUXP-10227d77bfccda845a63e20b22bc4367ecc7b4e0.tar
UXP-10227d77bfccda845a63e20b22bc4367ecc7b4e0.tar.gz
UXP-10227d77bfccda845a63e20b22bc4367ecc7b4e0.tar.lz
UXP-10227d77bfccda845a63e20b22bc4367ecc7b4e0.tar.xz
UXP-10227d77bfccda845a63e20b22bc4367ecc7b4e0.zip
420857 - Part 3: Report the position of opening brace for missing brace error in object literal.
Diffstat (limited to 'js/src/jit-test/tests')
-rw-r--r--js/src/jit-test/tests/parser/missing-closing-brace.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/parser/missing-closing-brace.js b/js/src/jit-test/tests/parser/missing-closing-brace.js
index 2bb96b11b..f97cefd81 100644
--- a/js/src/jit-test/tests/parser/missing-closing-brace.js
+++ b/js/src/jit-test/tests/parser/missing-closing-brace.js
@@ -74,3 +74,10 @@ try {
if (true) {
}
`, [3, 10]);
+
+// Object literal.
+test(`
+var x = {
+ foo: {
+};
+`, [2, 8]);