DescriptionImplement ThenableCoercions for AP2 Promises
ThenableCoercions is used for AP2 Promises[1] and it is represented as
a WeakMap. However, V8 WeakMap is not exposed to embedders[2] and
it cannot be used if the harmony collections flag is not set.
Since V8 GC relocates the Object addresses, we cannot implement WeakMap
without V8 internal information. So, at this time, we implement
Weak Linked List instead. As a result, the search becomes linear.
When V8 WeakMap becomes available, we replace the implementation.
[1]: https://github.com/domenic/promises-unwrapping
[2]: https://code.google.com/p/v8/issues/detail?id=2908
BUG=295420
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : #
Messages
Total messages: 3 (0 generated)
|