Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: Remove unnecessary steps before NewPromiseCapability (tc39…
…#1516) NewPromiseCapability will immediately check if the argument (C) is an Object using IsConstructor and it will throw a TypeError if it's not. This patch will just simplify the text with a fewer steps but this won't cause any new observable changes. NewPromiseCapability ( _C_ ) 1. If IsConstructor(_C_) is *false*, throw a *TypeError* exception. IsConstructor ( _argument_ ) 1. If Type(_argument_) is not Object, return *false*.
- Loading branch information