Skip to content

Commit

Permalink
Define %Temporal.Foo.prototype% intrinsics
Browse files Browse the repository at this point in the history
These intrinsics are defined in the spec, but were not yet needed in the
polyfill, so hadn't been defined. They will be needed in order for the
ECMA-402 calendars to define custom calendar properties on
%Temporal.Date.prototype%, for example.
  • Loading branch information
ptomato committed Oct 27, 2020
1 parent e06c4c3 commit e9033ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions polyfill/lib/intrinsicclass.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function MakeIntrinsicClass(Class, name) {
}

DefineIntrinsic(name, Class);
DefineIntrinsic(`${name}.prototype`, Class.prototype);
}

export function DefineIntrinsic(name, value) {
Expand Down

0 comments on commit e9033ec

Please sign in to comment.