Comments (2)
V8 representation of primitive values:
https://cs.chromium.org/chromium/src/v8/src/objects/js-objects.h?rcl=fe77d58a6a3cd9385454aa0bc29330ec668e293a&l=1236-1252
Unboxing in Spidermonkey:
https://searchfox.org/mozilla-central/source/js/src/vm/JSObject.cpp#4198-4220
SpiderMonkey js::getProperty()
https://searchfox.org/mozilla-central/rev/928742d3ea30e0eb4a8622d260041564d81a8468/js/src/vm/Interpreter.cpp#4438-4493
Spidermonkey have a js::getProperty method which checks if a JSValue is a primitive, if it is it will get the proto
of its object equivalent and use that.
They also cache this value so it can be used again, but the cache never gets cleared.
https://searchfox.org/mozilla-central/source/js/src/vm/GlobalObject.h#207-211
This is quite a different approach from V8 who create wrapper objects and use them
from boa.
Fixed by jasonwilliams#86
from boa.
Related Issues (20)
- How do you properly call an async function under tokio?
- Variables declared without var are not recognized as global in Non-Strict Mode. HOT 4
- Realm `host_defined` and `host_defined_mut` functions aren't accessible HOT 2
- Rust async function stuck indefinitely when called from js HOT 4
- Customizable console
- Ability to call rust function using js "this" and "args" using a utility trait.
- Can't regex match on string containing emoji HOT 2
- Panic on invalid input to boa::parse HOT 1
- Tracking issue for migrating `boa_temporal` to a new repo HOT 5
- Integrating Boa into Biome HOT 7
- RUSTSEC-2024-0014: `generational-arena` is unmaintained HOT 1
- Split `boa_tester` into crates HOT 2
- Possible Incompleteness HOT 1
- Tracking issue for the `Intl` builtin object HOT 1
- Intl: Implement `supportedLocalesOf` for services
- Intl: Extract implementation into a separate crate
- Intl: Remove hacks to get the supported locales of a service HOT 1
- Add backtraces to errors HOT 2
- Explore other storage methods for our test results HOT 12
- custom `JsValue` for better embed HOT 2
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 boa.