Skip to content

Commit 529b42f

Browse files
committed
glayzzle#86 : reproduce the error
1 parent a99ae87 commit 529b42f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/classTests.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,19 @@ describe('Test classes', function() {
183183
// @todo
184184
});
185185
});
186+
187+
describe('Test issues', function() {
188+
it('pass js properties', function() {
189+
var ast = parser.parseEval([
190+
'class __proto__ {',
191+
' static $constructor;',
192+
' public function constructor() {}',
193+
' public function __proto__() {',
194+
' $this->constructor = null;',
195+
' self::constructor = null;',
196+
' }',
197+
'}'
198+
].join('\n'));
199+
});
200+
})
186201
});

0 commit comments

Comments
 (0)