-
Notifications
You must be signed in to change notification settings - Fork 14
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
SyntaxError: 'return' outside of function #3
Comments
Any chance to get a minimal version of the JS causing the same error? |
there is a minmal version of the js which cause the same error |
I found a mimnaler version of the js:
TypeError: Expected node path of type Expression |
INFO duplicate of issue#5 I have the second issue too: I broke it down to: var a;
a % 4; Full stack trace:
|
Hi,
`[root@izbp1a5bxfhn22fz3yercfz illuminatejs]# ./node_modules/@babel/cli/bin/babel.js --plugins "./babel-plugin-deobfuscate/lib/illuminatejs.js" apu.js
Unknown loop control variable
Unknown loop control variable
Unknown loop control variable
Unknown loop control variable
{ SyntaxError: 'return' outside of function (1:27)
at Parser.pp$5.raise (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:4454:13)
at Parser.pp$1.parseReturnStatement (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:2066:10)
at Parser.pp$1.parseStatement (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:1848:19)
at Parser.pp$1.parseBlockBody (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:2268:21)
at Parser.pp$1.parseBlock (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:2247:8)
at Parser.pp$1.parseStatement (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:1868:19)
at Parser.pp$1.parseIfStatement (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:2059:26)
at Parser.pp$1.parseStatement (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:1846:19)
at Parser.pp$1.parseBlockBody (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:2268:21)
at Parser.pp$1.parseBlock (/root/illuminatejs/babel-plugin-deobfuscate/node_modules/babylon/lib/index.js:2247:8) pos: 27, loc: Position { line: 1, column: 27 } }
the `js's url is https://deloplen.com/apu.php?zoneid=2498696.
The text was updated successfully, but these errors were encountered: