Closed alessandrokonrad closed 3 years ago
I successfully compiled the rust library into an NPM package. But running it in JavaScript gives me an error:
static new(protected, unprotected) { ^^^^^^^^^ SyntaxError: Unexpected strict mode reserved word
Seems like protected is a reserved key word. So I added an underscore in the rust library and for consistency I added it to the unprotected argument as well.
protected
I successfully compiled the rust library into an NPM package. But running it in JavaScript gives me an error:
Seems like
protected
is a reserved key word. So I added an underscore in the rust library and for consistency I added it to the unprotected argument as well.