MCPcopy Index your code
hub / github.com/nodejs/node / define

Function define

deps/v8/tools/system-analyzer/log/map.mjs:14–16  ·  view source on GitHub ↗
(prototype, name, fn)

Source from the content-addressed store, hash-verified

12export const kChunkVisualWidth = 6;
13
14function define(prototype, name, fn) {
15 Object.defineProperty(prototype, name, {value: fn, enumerable: false});
16}
17
18define(Array.prototype, 'max', function(fn) {
19 if (this.length === 0) return undefined;

Callers 4

webidl2.jsFile · 0.85
marked.jsFile · 0.85
map.mjsFile · 0.85

Calls 1

definePropertyMethod · 0.45

Tested by

no test coverage detected