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

fix(#104): proper function.prototype.name implementation #106

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

SukkaW
Copy link
Owner

@SukkaW SukkaW commented Oct 16, 2024

Function.prototype.name is the name of the Function.prototype. The PR replaces the implementation with a proper getter.

I simply ignore any detection (this === Function.prototype or Object.hasOwn(this, 'name')) since nolyfill already assumes the runtime has the proper implementation.

cc @jdalton

@SukkaW SukkaW merged commit 3453876 into master Oct 16, 2024
1 check passed
@SukkaW SukkaW deleted the fix-104 branch October 16, 2024 13:52
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.

1 participant