We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hey I found a gap where you can get at Function and then create code full non static code.
Function
var evaluate = require('./'); var parse = require('esprima').parse; var src = '(function () {}).constructor("var l = 3; while(l--) console.log(l); console.log(Date.now()); arguments.callee()")()'; var ast = parse(src).body[0].expression; var res = evaluate(ast); //RangeError from stack overflow console.log(res)
here is the output:
2 1 0 1426154732632 2 1 0 1426154732632 2 1 ... RangeError: Maximum call stack size exceeded
as you would expect. It's somewhat harder to prevent turing completeness than it is to create it.
The text was updated successfully, but these errors were encountered:
Fixed in 2.0.0.
Sorry, something went wrong.
No branches or pull requests
hey I found a gap where you can get at
Function
and then create code full non static code.here is the output:
2
1
0
1426154732632
2
1
0
1426154732632
2
1
...
RangeError: Maximum call stack size exceeded
The text was updated successfully, but these errors were encountered: