]> Lady’s Gitweb - Pisces/blobdiff - symbol.js
Add methods for own entries and values to object.js
[Pisces] / 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.019307 seconds and 4 git commands to generate.