MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / looksNative

Function looksNative

tests/js/quint.js:50–53  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

48 throw new Error(`'${fn}' does not throw`);
49 },
50 looksNative(fn)
51 {
52 if (!fn.toString().includes('[native code]')) throw new Error(`'${fn}' does not look native`);
53 },
54 enumerable(obj, propertyName)
55 {
56 const descriptor = Object.getOwnPropertyDescriptor(obj, propertyName);

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected