Cleanup tame date
MODIFY
packages/tame-global-date-object/src/main.js
packages/tame-global-date-object/src/main.js
@@ -41,8 +41,6 @@ export default function tameGlobalDateObject() {
desc.value = safeDate;
defineProperty(safeDate.prototype, 'constructor', desc);
- globalThis.Date = safeDate;
-
// Tame specific properties.
const tamedNow = {
now() {
@@ -75,6 +73,9 @@ export default function tameGlobalDateObject() {
},
});
+ // Done with Date
+ globalThis.Date = safeDate;
+
// eslint-disable-next-line no-extend-native
const throwingToLocaleString = {
toLocaleString() {

Cleanup tame date