X-Git-Url: https://git.ladys.computer/Pisces/blobdiff_plain/8ae1056e7a8e0d348781ed6b5e8c3210eebea9df..refs/heads/current:/symbol.js diff --git a/symbol.js b/symbol.js index a96cb81..2bd3717 100644 --- a/symbol.js +++ b/symbol.js @@ -8,7 +8,6 @@ // file, You can obtain one at . 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" }, );