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:
|
value() { return this.name + ": " + this.message; }, |
Would be great if we could follow a common syntax like in other protobuf.js files. Example:
|
int64: function read_int64() { |
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