From 954d0eaf67c6699e4c1a37992c7684839e48acab Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Thu, 14 Mar 2024 18:33:25 -0400 Subject: [PATCH] Add 'configurable: true' to descriptors in __createBinding and __setModuleDefault --- tslib.es6.js | 4 ++-- tslib.es6.mjs | 4 ++-- tslib.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tslib.es6.js b/tslib.es6.js index 55dd360..301a696 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -154,7 +154,7 @@ export var __createBinding = Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; + desc = { enumerable: true, configurable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { @@ -258,7 +258,7 @@ export function __makeTemplateObject(cooked, raw) { }; var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); + Object.defineProperty(o, "default", { enumerable: true, configurable: true, value: v }); }) : function(o, v) { o["default"] = v; }; diff --git a/tslib.es6.mjs b/tslib.es6.mjs index 65081a6..f7d014d 100644 --- a/tslib.es6.mjs +++ b/tslib.es6.mjs @@ -154,7 +154,7 @@ export var __createBinding = Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; + desc = { enumerable: true, configurable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { @@ -258,7 +258,7 @@ export function __makeTemplateObject(cooked, raw) { }; var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); + Object.defineProperty(o, "default", { enumerable: true, configurable: true, value: v }); }) : function(o, v) { o["default"] = v; }; diff --git a/tslib.js b/tslib.js index 697469f..c5328f7 100644 --- a/tslib.js +++ b/tslib.js @@ -206,7 +206,7 @@ var __disposeResources; if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; + desc = { enumerable: true, configurable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { @@ -306,7 +306,7 @@ var __disposeResources; }; var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); + Object.defineProperty(o, "default", { enumerable: true, configurable: true, value: v }); }) : function(o, v) { o["default"] = v; };