endel / js2php

JavaScript (ES6) to PHP source-to-source transpiler.
https://endel.github.io/js2php/
MIT License
333 stars 41 forks source link

Problem with new global function implementation. #34

Closed 2pha closed 6 years ago

2pha commented 6 years ago

Adding this to the fixture produces an error:

let temp = "50";
var_dump(parseInt(temp));

The error is: "'Cannot read property 'scope' of undefined' TypeError: Cannot read property 'scope' of undefined". in "at Object.get (/js2php/scope.js:66:14)"