Description[promise] Test IsPromise() early in Promise.prototype.then()
Addresses TODO by Dan --- simply by moving the check and exception
earlier in the function, before calling NewPromiseCapability() or
loading the constructor.
BUG=v8:4633
LOG=N
R=adamk@chromium.org, littledan@chromium.org, cbruni@chromium.org
Fixes 'test262/built-ins/Promise/prototype/then/context-check-on-entry'
Committed: https://crrev.com/6cd8535c3b369cf07b4c0eae8075820f1c229df5
Cr-Commit-Position: refs/heads/master@{#33137}
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|