Comments (2)
Thanks - I've just put a fix in for this. JS Regex is nasty as it's not apparent to the poor lexer (without lookahead) exactly what makes a RegEx start and what makes a division.
Do you have any other examples of non-numerals beforehand that cause issues that work on other engines? I fixed true/false/undefined/null
I'd be particularly interested if there was everyday JS that had problems - I feel like dividing true
by something is probably not something that would happen in non-buggy code :)
from espruino.
Hi there,
The only other non-numerals that work on other engines and caused that issue were with this and uninitialized variables. Admittedly divisions involving theses are also not everyday JS 😅
from espruino.
Related Issues (20)
- The following jit code doesn't seem to ever return HOT 1
- Compiler: The following function fails to compile HOT 2
- Graphics: drawing image in string in clipped rect fails when rotated HOT 1
- E.showMenu(): onchange method not called HOT 2
- Uint8Array constructor byteOffset is restricted to 2bytes HOT 2
- Does the build_board_docs.py script currently work HOT 5
- ArrayBuffers use firstChild - could they use lastChild?
- Math.sqrt e.compiledC() HOT 5
- Bangle.getPressure() fails intermittently HOT 17
- Stopping code execution when the terminal is not connected HOT 3
- Promises: resolve a new Promise HOT 16
- Constructor comparisons don't work HOT 2
- Workflow File for Linux HOT 12
- using newer compiler for ARM (13.2.Rel1) HOT 20
- SEGV on unknown address in jsvStringIteratorPrintfCallback HOT 3
- stack-overflow in jspeFactorFunctionCall
- Pretokenise JS functions included with `generate_js`
- 'Linting' for potential inefficiencies HOT 1
- Typed arrays are broken HOT 3
- coded phy works (better) with S140 6.1.x HOT 10
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 espruino.