MCPcopy
hub / github.com/nodejs/node / check_FOREIGN_SUB

Function check_FOREIGN_SUB

deps/v8/test/mjsunit/wasm/ffi.js:47–54  ·  view source on GitHub ↗
(r, a, b)

Source from the content-addressed store, hash-verified

45}
46
47function check_FOREIGN_SUB(r, a, b) {
48 assertEquals(a - b | 0, r);
49 assertTrue(was_called);
50// assertEquals(global, params[0]); // sloppy mode
51 assertEquals(a, params[1]);
52 assertEquals(b, params[2]);
53 was_called = false;
54}
55
56// Test calling a normal JSFunction.
57print("JSFunction");

Callers

nothing calls this directly

Calls 2

assertEqualsFunction · 0.50
assertTrueFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…