MCPcopy Create free account
hub / github.com/nodejs/node / makeConstructorObject

Function makeConstructorObject

deps/v8/test/mjsunit/harmony/atomics.js:22–27  ·  view source on GitHub ↗
(constr, min, max, toRange)

Source from the content-addressed store, hash-verified

20}
21
22function makeConstructorObject(constr, min, max, toRange) {
23 var o = {constr: constr, min: min, max: max};
24 let is_big = constr.name.startsWith('Big')
25 o.toRange = toRangeWrapper(is_big).bind(o);
26 return o;
27}
28
29function IsBig(t) {
30 return t.constructor.name.startsWith('Big');

Callers 1

atomics.jsFile · 0.85

Calls 2

toRangeWrapperFunction · 0.85
bindMethod · 0.45

Tested by

no test coverage detected