Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions source/units/Goccia.Shims.pas
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,11 @@ 'export const Date = class Date {'#10 +
FileName: '<shim:hasOwnProperty>';
Source:
'export const hasOwnProperty = ((proto) => {'#10 +
' class _H { hasOwnProperty(prop) { return Object.hasOwn(this, prop); } }'#10 +
' const fn = new _H().hasOwnProperty;'#10 +
' Object.defineProperty(proto, "hasOwnProperty", {'#10 +
' value: fn, writable: true, enumerable: false, configurable: true'#10 +
' value(prop) { return Object.hasOwn(this, prop); },'#10 +
' writable: true, enumerable: false, configurable: true'#10 +
' });'#10 +
' return fn;'#10 +
' return proto.hasOwnProperty;'#10 +
'})(Object.getPrototypeOf({}));'
)
);
Expand Down
Loading