-
Notifications
You must be signed in to change notification settings - Fork 41
Is the polyfill available? Can you help us please? #64
Comments
I'm not sure a browser polyfill is really possible unless there's an existing API that can somehow be abused to expose a Weak Reference created by another spec. A polyfill for Node is definitely possible though as Node exposes weak references in the C++ NAPI, in fact if you want a Node polyfill here you go (currently missing |
Yes I doubt a polyfill is possible. This is really adding a totally new features to browsers. The only thing would be if someone created a polyfill that simply never calls the executor (simulating a system that never runs a garbage collection) |
That’d be a sham, instead of a shim :-) Weakness of keys (WeakSet, WeakMap) isn’t something that’s polyfillable unless the engine provides it; neither would be weakness of values, unfortunately. |
I understand, I asked this question because someone was talking about a
polyfill in the issues... apparently one of the implementers...
bWe're trying to rewrite the current WebAudio tab in the devtools as an
extension, and we will have to monitor when WebAudio nodes are created or
garbage collected...
Le lun. 11 mars 2019 à 01:49, Jordan Harband <[email protected]> a
écrit :
… That’d be a sham, instead of a shim :-) Weakness of keys (WeakSet,
WeakMap) isn’t something that’s polyfillable unless the engine provides it;
neither would be weakness of values, unfortunately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnl2DntI_7DsMb4qkpsyiUYp7zw_y9pks5vVagOgaJpZM4bjWhG>
.
|
Yes, this is polyfillable. We are currently working on a polyfill for this. |
I will close this for now as there will be a polyfill at a future date. Michel Buffa and I have synced in a separate channel. |
I've implemented my own shim which should be spec compliant: It has an implementation for node, and an experimental PoC for SpiderMonkey shell. |
Hi, we're ou our way trying to port the old Firefox WebAudio devtools for debugging WebAudio applications. We're going to rely on the WeakRefs API for tracking WebAudio nodes that will be Created or Garbage Collected.
We read about a polyfill that is being written... is it available? We'll be glad to beta test it...
Thanks in advance
The text was updated successfully, but these errors were encountered: