aboutsummaryrefslogtreecommitdiffstats
path: root/test/ParserTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ParserTest.js')
-rw-r--r--test/ParserTest.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ParserTest.js b/test/ParserTest.js
index 53ca9eda..c8d323f2 100644
--- a/test/ParserTest.js
+++ b/test/ParserTest.js
@@ -482,3 +482,7 @@ ParserTest.prototype.testBugStringConfusesParser = function() {
assertEquals('!', scope.eval('suffix = "!"'));
};
+ParserTest.prototype.testParsingBug = function () {
+ var scope = new Scope();
+ assertEquals({a: "-"}, scope.eval("{a:'-'}"));
+};