MCPcopy Create free account
hub / github.com/AlexNisnevich/untrusted / wrapExposedMethod

Function wrapExposedMethod

scripts/map.js:29–36  ·  view source on GitHub ↗
(f, map)

Source from the content-addressed store, hash-verified

27 /* wrapper */
28
29 function wrapExposedMethod(f, map) {
30 return function () {
31 var args = arguments;
32 return __game._callUnexposedMethod(function () {
33 return f.apply(map, args);
34 });
35 };
36 };
37
38 /* unexposed getters */
39

Callers 1

MapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected