Fix bug with parsing slash after operator-keyword property

Closes #53
This commit is contained in:
Marijn Haverbeke
2013-08-25 15:01:20 +02:00
parent 097b4162da
commit 6113324cd2
3 changed files with 42 additions and 10 deletions

View File

@@ -26235,7 +26235,36 @@ test("var a = 1;", {
}, {
locations: true,
sourceFile: "test.js"
})
});
test("a.in / b", {
type: "Program",
body: [
{
type: "ExpressionStatement",
expression: {
type: "BinaryExpression",
left: {
type: "MemberExpression",
object: {
type: "Identifier",
name: "a"
},
property: {
type: "Identifier",
name: "in"
},
computed: false
},
operator: "/",
right: {
type: "Identifier",
name: "b"
}
}
}
]
});
// Failure tests