From: Lady Date: Sun, 19 Nov 2023 16:04:35 +0000 (-0500) Subject: Drop dependency on object.js from symbol.js X-Git-Url: https://git.ladys.computer/Pisces/commitdiff_plain/e075e2301a6f76a6b2a9d503ab92b593b4889439?ds=inline;hp=e272aec320bec47125cd7922e1d1ed5f65e37e1f Drop dependency on object.js from symbol.js This is only a loadtime dependency and not necessary. --- diff --git a/symbol.js b/symbol.js index e1183ef..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,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" }, );