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

Is let keyword not supported? #47

Open
HeyITGuyFixIt opened this issue Jul 24, 2019 · 1 comment
Open

Is let keyword not supported? #47

HeyITGuyFixIt opened this issue Jul 24, 2019 · 1 comment

Comments

@HeyITGuyFixIt
Copy link

I passed a JavaScript file I have been working on into dukpy's evaljs and got an error. I found the offending line and did some testing and discovered that it doesn't like the let keyword. Some examples of what I used are:

let a;
let b = 5;
let c='hello world';

Each line above (which is valid JavaScript) results in this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\HPOWNE~1\DOCUME~1\CHRIST~1\projects\TDP\thea\KIVY_V~1\lib\site-packages\dukpy\evaljs.py", line 57, in evaljs
    res = _dukpy.eval_string(self, jscode, jsvars)
_dukpy.JSRuntimeError: SyntaxError: unterminated statement (line 1)
        src\pyduktape.c:1
        duk_js_compiler.c:6594

It would seem as if the let keyword is not supported. Is there a reason for that or has it simply not been added yet?

@HeyITGuyFixIt
Copy link
Author

Looks like duktape doesn't support it yet. svaarala/duktape#2000

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

1 participant