Skip to content

Commit 16b707a

Browse files
author
Maarten Staa
committed
Fix one code path which was leaving an unclosed node.
1 parent 06b6d32 commit 16b707a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser/scalar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ module.exports = {
364364
this.next();
365365
// check if lookup an offset
366366
// https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y#L1243
367+
result.destroy();
367368
if (this.token === "[") {
368369
name = name(varName, false);
369370
node = this.node("offsetlookup");

0 commit comments

Comments
 (0)