fix parser test

not sure if `start.pos` is correct, but oh well
This commit is contained in:
alexlamsl
2017-02-28 14:08:31 +08:00
parent ab217539e9
commit 478aaab469
2 changed files with 5 additions and 5 deletions

View File

@@ -16,8 +16,8 @@ describe("Accessor tokens", function() {
assert.equal(node.start.pos, 12);
assert.equal(node.end.endpos, 46);
assert(node.key instanceof UglifyJS.AST_SymbolRef);
assert.equal(node.key.start.pos, 16);
assert(node.key instanceof UglifyJS.AST_SymbolMethod);
assert.equal(node.key.start.pos, 12);
assert.equal(node.key.end.endpos, 22);
assert(node.value instanceof UglifyJS.AST_Accessor);