Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit f3c737b

Browse files
authored
Merge pull request glayzzle#222 from glayzzle/test-bin
fix: `instanceof`
2 parents 19c1558 + cf064c0 commit f3c737b

File tree

3 files changed

+1217
-1
lines changed

3 files changed

+1217
-1
lines changed

src/parser/variable.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ module.exports = {
4343
) {
4444
result = this.node();
4545
const name = this.read_namespace_name();
46-
if (this.token != this.tok.T_DOUBLE_COLON && this.token != "(") {
46+
if (
47+
this.token != this.tok.T_DOUBLE_COLON &&
48+
this.token != "(" &&
49+
["parentreference", "selfreference"].indexOf(name.kind) === -1
50+
) {
4751
// @see parser.js line 130 : resolves a conflict with scalar
4852
const literal = name.name.toLowerCase();
4953
if (literal === "true") {

0 commit comments

Comments
 (0)