ccxvii / mujs

An embeddable Javascript interpreter in C.
http://mujs.com/
ISC License
813 stars 98 forks source link

let is not support ?? #138

Closed 756445638 closed 4 years ago

756445638 commented 4 years ago

[yuyang@localhost release]$ ./mujs -i

let a = 1; SyntaxError: [stdin]:1: unexpected token: (identifier) (expected ';')

ccxvii commented 4 years ago

"let" is not part of ECMAScript 5 language. The "let" and "const" keywords were added in a later version of the language, which is not supported by mujs.

756445638 commented 4 years ago

ok thanks