Skip to content
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

Parse error with "let" #29

Closed
uullrich opened this issue Mar 4, 2021 · 1 comment
Closed

Parse error with "let" #29

uullrich opened this issue Mar 4, 2021 · 1 comment

Comments

@uullrich
Copy link

uullrich commented Mar 4, 2021

Hello,

I have a problem with the ES6 let Keyword. It always results in a parse error.

At first I have tried to "compile" this sample:
https://frida.re/news/2016/10/25/frida-8-1-released/

At least I also have trouble with this litte code snippet:
let a = 42; console.log("Hello World", a);

frida-compile does not transpile the let keyword for me.

After the script startup with Frida it results in: Failed to load script: script(line 46): SyntaxError: parse error

I am relatively new to frida and would be very thankful for any hint.

Version: 10.1.0

@oleavr
Copy link
Member

oleavr commented Mar 4, 2021

Hey,

There is no longer any need to transpile to legacy syntax. The latest frida-compile doesn't do this anymore, as both of our runtimes (based on QuickJS and V8) support modern syntax.

Cheers!

@oleavr oleavr closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants