Files
est-frame/node_modules/core-js-pure/modules/esnext.function.metadata.js
2025-10-22 05:38:27 +00:00

15 lines
450 B
JavaScript
Executable File

'use strict';
var wellKnownSymbol = require('../internals/well-known-symbol');
var defineProperty = require('../internals/object-define-property').f;
var METADATA = wellKnownSymbol('metadata');
var FunctionPrototype = Function.prototype;
// Function.prototype[@@metadata]
// https://github.com/tc39/proposal-decorator-metadata
if (FunctionPrototype[METADATA] === undefined) {
defineProperty(FunctionPrototype, METADATA, {
value: null
});
}