Skip to content

Commit ae605ab

Browse files
committed
[add] ECMAScript Temporal API polyfill
1 parent 3032e3f commit ae605ab

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

source/list/ES.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ export class Regenerator extends Polyfill {
4444
return 'regeneratorRuntime' in window;
4545
};
4646
}
47+
48+
export class Temporal extends Polyfill {
49+
packageName = 'temporal-polyfill';
50+
51+
detect = function () {
52+
return 'Temporal' in window && typeof window.Temporal === 'object';
53+
};
54+
}

0 commit comments

Comments
 (0)