MCPcopy
hub / github.com/ampproject/amphtml / wrapper

Function wrapper

3p/environment.js:184–193  ·  view source on GitHub ↗

* @return {*} * @suppress {uselessCode}

()

Source from the content-addressed store, hash-verified

182 * @suppress {uselessCode}
183 */
184 function wrapper() {
185 next();
186 if (typeof fn == 'string') {
187 // Handle rare and dangerous string arg case.
188 return (0, win.eval) /*NOT OK but whatcha gonna do.*/
189 .call(win, fn); // lgtm [js/useless-expression]
190 } else {
191 return fn.apply(this, arguments);
192 }
193 }
194 args[0] = wrapper;
195 /**
196 *

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
nextFunction · 0.70

Tested by

no test coverage detected