summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
e272aec)
This is only a loadtime dependency and not necessary.
// file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
import { createCallableFunction } from "./function.js";
// 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.
/**
* Returns the description for the provided symbol.
* ☡ This function throws if the provided argument is not a symbol.
*/
export const getSymbolDescription = createCallableFunction(
* ☡ 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" },
);
{ name: "getSymbolDescription" },
);