-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error when compiling non ES5 style function syntax #1829
Comments
acode-x
added a commit
to acode-x/protobuf.js
that referenced
this issue
Oct 27, 2022
alexander-fenster
pushed a commit
that referenced
this issue
Feb 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
protobuf.js version: 7.1.2
Hi,
I am using duktape Javascript engine (ES5/5.1 compliant + few features ES6/7) along with protobuf.js.
I get the following error when compiling protobuf.js:
SyntaxError: invalid object literal (line x)
This is due to the fact that duktape doesn’t understand the function syntax as below:
protobuf.js/src/util/minimal.js
Line 291 in d026849
protobuf.js/src/util/minimal.js
Line 301 in d026849
Would be great if we could follow a common syntax like in other protobuf.js files. Example:
protobuf.js/src/reader.js
Line 390 in d026849
The text was updated successfully, but these errors were encountered: