]> Lady’s Gitweb - Pisces/commitdiff
Drop dependency on object.js from symbol.js
authorLady <redacted>
Sun, 19 Nov 2023 16:04:35 +0000 (11:04 -0500)
committerLady <redacted>
Sun, 19 Nov 2023 16:04:35 +0000 (11:04 -0500)
This is only a loadtime dependency and not necessary.

symbol.js

index e1183ef05076327dba3518c6fc6e1a2eefd68d1a..2bd37173fea849be70108d4e8991eb6d08ad918c 100644 (file)
--- a/symbol.js
+++ b/symbol.js
@@ -8,7 +8,6 @@
 // file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
 
 import { createCallableFunction } from "./function.js";
-import { getOwnPropertyDescriptor } from "./object.js";
 
 /**
  * Returns the description for the provided symbol.
@@ -19,7 +18,7 @@ import { getOwnPropertyDescriptor } from "./object.js";
  * ☡ This function throws if the provided argument is not a symbol.
  */
 export const getSymbolDescription = createCallableFunction(
-  getOwnPropertyDescriptor(Symbol.prototype, "description").get,
+  Object.getOwnPropertyDescriptor(Symbol.prototype, "description").get,
   { name: "getSymbolDescription" },
 );
 
This page took 0.041486 seconds and 4 git commands to generate.