Comments (2)
Thanks - interestingly, "blah".constructor
seems to return undefined
initially, but if you call String.prototype.constructor
it's fine afterwards - so it seems to be having trouble creating the constructor.
So if you change the order of comparison, it appears to work reliably for me? Is that the same for you?
const cmp = () => String.prototype.constructor == "blah".constructor;
console.log(
cmp() == cmp()
);
from espruino.
I've got a fix for this, but it appears to break some other stuff so I'm going to hold off committing it.
I believe the 'real prototype chain' branch would fix this too.
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
- 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.