Skip to content

Commit

Permalink
Add test for let instanceof Foo
Browse files Browse the repository at this point in the history
See #553.
  • Loading branch information
adrianheine authored and marijnh committed Oct 29, 2017
1 parent d38f9d8 commit fd39391
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/tests-harmony.js
Expand Up @@ -15804,3 +15804,34 @@ testFail("class A extends B { foo() { (super).foo } }", "Unexpected token (1:34)
test("({super: 1})", {}, { ecmaVersion: 6 })
test("import {super as a} from 'a'", {}, { ecmaVersion: 6, sourceType: "module" })
test("export {a as super}", {}, { ecmaVersion: 6, sourceType: "module" })
test("let instanceof Foo", {
"type": "Program",
"start": 0,
"end": 18,
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 18,
"expression": {
"type": "BinaryExpression",
"start": 0,
"end": 18,
"left": {
"type": "Identifier",
"start": 0,
"end": 3,
"name": "let"
},
"operator": "instanceof",
"right": {
"type": "Identifier",
"start": 15,
"end": 18,
"name": "Foo"
}
}
}
],
"sourceType": "script"
}, {ecmaVersion: 6})

0 comments on commit fd39391

Please sign in to comment.