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

Function install

deps/v8/test/mjsunit/contextual-calls.js:32–37  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

30Realm.shared = {}
31
32function install(name, value) {
33 Realm.shared[name] = value;
34 for (i in realms) {
35 Realm.eval(realms[i], name + " = Realm.shared['" + name + "'];");
36 }
37}
38
39install('return_this', function() { return this; });
40install('return_this_strict', function () { 'use strict'; return this; });

Callers 1

Calls 1

evalMethod · 0.45

Tested by

no test coverage detected