Fix special case to handle regexps that start with =

Closes #55
This commit is contained in:
Marijn Haverbeke
2013-08-28 10:35:21 +02:00
parent 2ace0fa8dc
commit 6659f7a033
3 changed files with 19 additions and 3 deletions

View File

@@ -26266,6 +26266,23 @@ test("a.in / b", {
]
});
test("{}/=/", {
type: "Program",
body: [
{
type: "BlockStatement",
body: []
},
{
type: "ExpressionStatement",
expression: {
type: "Literal",
raw: "/=/"
}
}
]
});
// Failure tests
testFail("{",
@@ -26874,4 +26891,3 @@ testFail("throw\n10;", "Illegal newline after throw (1:5)");
}
);
})();