Skip to content

Commit

Permalink
fix(#104): proper function.prototype.name implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 16, 2024
1 parent cf41257 commit 9fac3fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/data/es-shim-like/src/function.prototype.name.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Function.prototype.name);
export default defineEsShim<Function, (this: Function) => string>(function functionPrototypeName() { return this.name; });
2 changes: 1 addition & 1 deletion packages/generated/function.prototype.name/entry.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e}});const e=(0,require("@nolyfill/shared").defineEsShim)(Function.prototype.name);
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e}});const e=(0,require("@nolyfill/shared").defineEsShim)(function(){return this.name});
Object.assign(exports.default, exports); module.exports = exports.default;
2 changes: 1 addition & 1 deletion packages/generated/function.prototype.name/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nolyfill/function.prototype.name",
"version": "1.0.28",
"version": "1.0.40",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
Expand Down

0 comments on commit 9fac3fb

Please sign in to comment.