question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax error on valid javascript code

See original GitHub issue
{ SyntaxError: Invalid left-hand side in assignment (64:39)
        if (async === void 0) { async = false; }
                                       ^

 at report (/a/node_modules/fuse-box/transform/meriyah.js:168:11)
    at parseAssignmentExpression (/a/node_modules/fuse-box/transform/meriyah.js:2635:13)
    at parseAsyncArrowOrAsyncFunctionDeclaration (/a/node_modules/fuse-box/transform/meriyah.js:1987:12)
    at parseStatementListItem (/a/node_modules/fuse-box/transform/meriyah.js:1813:20)
    at parseBlock (/a/node_modules/fuse-box/transform/meriyah.js:1908:19)
    at parseStatement (/a/node_modules/fuse-box/transform/meriyah.js:1821:20)
    at parseConsequentOrAlternate (/a/node_modules/fuse-box/transform/meriyah.js:2040:11)
    at parseIfStatement (/a/node_modules/fuse-box/transform/meriyah.js:2025:24)
    at parseStatement (/a/node_modules/fuse-box/transform/meriyah.js:1827:20)
    at parseStatementListItem (/a/node_modules/fuse-box/transform/meriyah.js:1815:20)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
KFlashcommented, May 26, 2019
2reactions
KFlashcommented, May 15, 2019

The issue was that “async” isn’t seen as a “ordinary” ident so I just forgot to make async ident assignable 😃

Fix is coming within a few minutes

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle the Syntax Error in Javascript - Rollbar
Syntax errors in Javascript cannot be handled by using try-catch blocks as they are thrown while the code is being parsed. The window.onerror() ......
Read more >
Syntax Validator - Esprima
Syntax Validator checks for mistakes and errors ... Unlike a typical code linter, this syntax validator does not care about coding styles and...
Read more >
JavaScript Syntax Errors and How to Prevent Them - Meticulous
The complete guide on JavaScript Syntax Errors, how they occur, and techniques and tools available to prevent them.
Read more >
JavaScript Validator - Validate js online - ExtendsClass
This JavaScript code checker tool highlights and allows to navigate between lines with syntax error. To check your code, you must copy and...
Read more >
Simple way to check/validate javascript syntax - Stack Overflow
Try this: document.write('something'); a = 0; if (window.location == 'google.com') a = 1; document.write("aaa='andh"+a+"eded"'); a = { something ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found