diff --git a/source/units/Goccia.Shims.pas b/source/units/Goccia.Shims.pas index 35d71fae..81e3899b 100644 --- a/source/units/Goccia.Shims.pas +++ b/source/units/Goccia.Shims.pas @@ -207,12 +207,11 @@ 'export const Date = class Date {'#10 + FileName: ''; 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({}));' ) );