| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c73aba0 commit d0744c6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -132,6 +132,7 @@ const { | |||
| 132 | 132 | const { | |
| 133 | 133 | Intl, | |
| 134 | 134 | SharedArrayBuffer, | |
| 135 | + Temporal, | ||
| 135 | 136 | WebAssembly, | |
| 136 | 137 | } = globalThis; | |
| 137 | 138 | ||
@@ -372,6 +373,20 @@ module.exports = function() { | |||
| 372 | 373 | ArrayPrototypePush(intrinsics, Intl); | |
| 373 | 374 | } | |
| 374 | 375 | ||
| 376 | + if (typeof Temporal !== 'undefined') { | ||
| 377 | + ArrayPrototypePush(intrinsicPrototypes, | ||
| 378 | + Temporal.Duration.prototype, | ||
| 379 | + Temporal.Instant.prototype, | ||
| 380 | + Temporal.PlainDate.prototype, | ||
| 381 | + Temporal.PlainDateTime.prototype, | ||
| 382 | + Temporal.PlainMonthDay.prototype, | ||
| 383 | + Temporal.PlainTime.prototype, | ||
| 384 | + Temporal.PlainYearMonth.prototype, | ||
| 385 | + Temporal.ZonedDateTime.prototype, | ||
| 386 | + ); | ||
| 387 | + ArrayPrototypePush(intrinsics, Temporal); | ||
| 388 | + } | ||
| 389 | + | ||
| 375 | 390 | ArrayPrototypeForEach(intrinsicPrototypes, enableDerivedOverrides); | |
| 376 | 391 | ||
| 377 | 392 | const frozenSet = new WeakSet(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments