-
- Downloads
Promise: Add test for constructor access count
Assert that the `constructor` property of the "this" value of `Promise.prototype.then` is accessed exactly once. This guards against implementations where repeated access is used instead of reference passing (possibly motivated by convenience). Repeated access of this kind was demonstrated by V8's implementation of the specification: https://bugs.chromium.org/p/v8/issues/detail?id=4539
Please register or sign in to comment