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

Function CreateFromConstructor

deps/v8/test/mjsunit/readonly.js:45–52  ·  view source on GitHub ↗
(proto)

Source from the content-addressed store, hash-verified

43}
44
45function CreateFromConstructor(proto) {
46 function C() {}
47 new C().b = 9; // Make sure that we can have an in-object property.
48 C.prototype = proto;
49 return function() {
50 return new C();
51 };
52}
53
54function CreateFromApi(proto) {
55 return function() {

Callers 1

readonly.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected