MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / wrap

Function wrap

lib/web/polyfill.js:1773–1782  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

1771 });
1772
1773 function wrap(fn){
1774 return function(it){
1775 assertObject(it);
1776 try {
1777 return fn.apply(undefined, arguments), true;
1778 } catch(e){
1779 return false;
1780 }
1781 }
1782 }
1783
1784 function reflectGet(target, propertyKey/*, receiver*/){
1785 var receiver = arguments.length < 3 ? target : arguments[2]

Callers 1

polyfill.jsFile · 0.70

Calls 2

assertObjectFunction · 0.85
applyMethod · 0.65

Tested by

no test coverage detected