NiL.JS icon indicating copy to clipboard operation
NiL.JS copied to clipboard

SyntaxError: Expected ',', ';' or '}' (17538:17)

Open matteofabbri opened this issue 5 years ago • 1 comments

Source code: https://raw.githubusercontent.com/BrainJS/brain.js/master/dist/brain-browser.js

Playing a little with code looks like it doesn't like this piece of code:

  const
   {
        contextName = 'gl',
         throwGetError,
        useTrackablePrimitives,
        readPixelsFile,
        recording = [],
        variables = {},
        onReadPixels,
        onUnrecognizedArgumentLookup,
   } = options;

matteofabbri avatar Oct 07 '19 09:10 matteofabbri

Thanks for this bug report. This is because of Destructuring Assignment with Default Values not implemented yet.

nilproject avatar Oct 08 '19 14:10 nilproject