Comments (4)
Hi! Not sure from which version you upgraded -- the affected code has been there for a number of years now.
I can also reproduce the same error without IIFE, just with use strict
and a static block inside a class.
Anyway, I've pushed a change which should hopefully serve as a good enough workaround, see if you still have problems.
from js2-mode.
Thanks. I'll give it a try as soon as I can and report back.
FTR, I downgraded to 20230408 and I had no problems with long pauses or error messages. I did experience the issue expressed in #594 .
from js2-mode.
Ahh, noticed it was on melpa already.
Works great. Many thanks!
from js2-mode.
I downgraded to 20230408 and I had no problems with long pauses or error messages
Okay, that actually makes sense: there was no support for static
at that time. Though I'd expect the behavior to be the same in both of these cases: file fails to parse, shows some errors in the buffer and in Messages.
Works great. Many thanks!
Welcome!
from js2-mode.
Related Issues (20)
- Omitting parentheses and identifiers of CATCH should not raise errors HOT 1
- forward-sexp and backward-sexp are incoherent HOT 1
- Imenu support for mocha-like test files HOT 8
- private method and private property are not indenting HOT 2
- How to disable syntax highlight. HOT 2
- Make "Code has no side effects" warning optional HOT 2
- HTML tag regex inadvertently matches types. HOT 2
- js2-PRIVATE_NAME is breaking js2-skip-preprocessor-directives HOT 7
- No code highlighting without menu-bar? HOT 6
- Using '#' pound sign for 'private' properties in a .js file causes syntax issues to not be highlighted HOT 6
- Possible bug with js2-node-abs-pos and `new` expressions HOT 3
- Escaped expressions containing a real expression in a template literal inside a a lambda inside a class method break the parser HOT 2
- Static blocks not recognised as valid code HOT 2
- Does js2-mode become obsolete in Emacs 27.1? Or that the latest stable is not available via ELPA / MELPA? HOT 1
- Update README.md to explain the differences (incl. benefits and caveats) of `js2-mode` versus other packages HOT 11
- js2-mode doesn't recognize LS and PS line endings, leading to incorrect syntax highlighting HOT 6
- js2-mode does not recognize asynchronous generators within class or object HOT 3
- Feature request: insert closing delimiter HOT 1
- Fail start mode with "Error running timer" on Emacs 31.0.50 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js2-mode.