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)
- ESP32_IDF4 (ESP32C3) support HOT 4
- Any plans to switch to python3? HOT 6
- `Object.defineProperty(<function>, ...)` HOT 1
- `Object.clone()` returning function HOT 2
- Using different pins for neopixel on ESP32 does not work correct HOT 6
- Loss of errors when executing require() HOT 4
- banglejs_iflash build: error running `.bootcde`, compacting corrupts `.boot0` and deletes most files HOT 4
- Static fields in classes HOT 1
- Bad text alignment when rendering Unicode centered
- overlays are cut off from the top instead of landing at desired y position HOT 2
- [Bangle.js 2 Question] EXTCOM frequency HOT 1
- nrf5x_dfu/main.c highlight potential impossible code path HOT 2
- Scoping bug when defining a function from a previous scope HOT 14
- Stuck uploading firmware v23 HOT 2
- Images pixel crop when rotating HOT 1
- analogRead doesn't work (0.99 first time, 0 after) HOT 2
- Modulus with infinity returns unexpected value HOT 1
- Extra undefined element added in array.map() HOT 1
- SyntaxError not thrown for duplicate parameters in arrow functions HOT 1
- Unexpected result in array manipulation and arithmetic operations
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.