-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
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
fail to run js code #46
Comments
Could you offer the source code for debug? It's hard to figure out what problem is with an uglify code. |
I'm so sorry but I was trying to solve obfuscated code with sval, I do not have the raw source code. |
@hellodword fixed in 0.4.7 |
With the same obfuscated code, it shows Looked into and I found the issue is in the (function() {
function _j(a) {
eval(a)
}
function _g(d) {
this.chars && console.log(this.chars);
}
function _q(a, b, c) {
return a.apply(b, Array.prototype.slice.call(arguments, 2))
}
$c = this;
// success
_g.call({chars: "hello!"},"");
var jscode = '_g.call({chars: "hello!"},"");';
// fail
_j(jscode);
// fail
_q(_j, $c, jscode);
})(); |
Maybe I should take |
Maybe there's a chance to catch eval calls and run them though sval. |
Thanks for your work!
When I tried to run a piece of code, I got
SyntaxError: Identifier 'a' has already been declared
.And I tried all ecmaVer.
Here is the code: jsbin
The text was updated successfully, but these errors were encountered: