njs icon indicating copy to clipboard operation
njs copied to clipboard

|| operator parsing error

Open yoctoserge opened this issue 3 years ago • 1 comments

Hi! Trying to use external library, via npm. Library has such code line which cannot be parsed (trying with NJS Util):

for (key in props || {}) {

Here is the output of the NJS Util:

Thrown:
SyntaxError: Unexpected token ")" in /app/main.js:130
make: *** [run-lib] Error 1

Is it a bug or somthing not supported intentionally? Is there a way to process the file by webpack, etc, to transpile such constructions?

Thanks!

yoctoserge avatar Oct 17 '22 11:10 yoctoserge

Hi! @yoctoserge

Take a look at #351

drsm avatar Oct 17 '22 15:10 drsm

Fixed as a part of #351.

xeioex avatar Nov 14 '22 17:11 xeioex