Skip to content

[New] use Reflect.apply‑based callability detection#54

Merged
ljharb merged 1 commit intoinspect-js:masterfrom
EB-Forks:feat/use-reflect-apply
May 30, 2020
Merged

[New] use Reflect.apply‑based callability detection#54
ljharb merged 1 commit intoinspect-js:masterfrom
EB-Forks:feat/use-reflect-apply

Conversation

@ExE-Boss
Copy link
Copy Markdown
Contributor

@ExE-Boss ExE-Boss commented May 19, 2020

Based on the IsConstructor implementation in ljharb/es-abstract#93 and tc39/ecma262#1798 (comment).

This makes isCallable use Reflect.apply with a badArrayLike when Reflect.apply and accessor descriptors are supported.

This has the advantage of supporting proxies in environments that don’t implement tc39/ecma262#664 (tc39/ecma262#697).

@ExE-Boss ExE-Boss requested a review from ljharb May 21, 2020 20:52
@ljharb ljharb changed the title [Feat] use Reflect.apply‑based callability detection [New] use Reflect.apply‑based callability detection May 30, 2020
@ljharb ljharb force-pushed the feat/use-reflect-apply branch from 6a0d2a8 to 32e14cf Compare May 30, 2020 23:22
@ljharb ljharb merged commit 32e14cf into inspect-js:master May 30, 2020
@ljharb ljharb deleted the feat/use-reflect-apply branch May 30, 2020 23:26
ljharb added a commit that referenced this pull request Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants