Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 30, 2020

Conversation

ExE-Boss
Copy link
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).

index.js Outdated Show resolved Hide resolved
@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