]> Lady’s Gitweb - Pisces/blobdiff - symbol.js
Add methods for own entries and values to object.js
[Pisces] / symbol.js
index a96cb812636aca31952302955166c036fee18077..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,8 +18,8 @@ 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,
-  "getSymbolDescription",
+  Object.getOwnPropertyDescriptor(Symbol.prototype, "description").get,
+  { name: "getSymbolDescription" },
 );
 
 /**
@@ -35,7 +34,7 @@ export const getSymbolDescription = createCallableFunction(
  */
 export const symbolToString = createCallableFunction(
   Symbol.prototype.toString,
-  "symbolToString",
+  { name: "symbolToString" },
 );
 
 /**
@@ -48,5 +47,5 @@ export const symbolToString = createCallableFunction(
  */
 export const symbolValue = createCallableFunction(
   Symbol.prototype.valueOf,
-  "symbolValue",
+  { name: "symbolValue" },
 );
This page took 0.0219549999999999 seconds and 4 git commands to generate.