From 0ee49016b9f3a2ee0f0691ba3a75496b12179c9d Mon Sep 17 00:00:00 2001 From: joe223 Date: Mon, 8 Jan 2024 20:42:25 +0800 Subject: [PATCH] fix: prototype rewrite error --- src/proto.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/proto.js b/src/proto.js index 9624654..471abb0 100644 --- a/src/proto.js +++ b/src/proto.js @@ -31,18 +31,23 @@ export function setupToJsonURLText({ }) { Object.defineProperty(Array.prototype, "toJsonURLText", { value: toJsonURLText_Array, + configurable: true }); Object.defineProperty(Boolean.prototype, "toJsonURLText", { value: toJsonURLText_Boolean, + configurable: true }); Object.defineProperty(Number.prototype, "toJsonURLText", { value: toJsonURLText_Number, + configurable: true }); Object.defineProperty(Object.prototype, "toJsonURLText", { value: toJsonURLText_Object, + configurable: true }); Object.defineProperty(String.prototype, "toJsonURLText", { value: toJsonURLText_String, + configurable: true }); }