MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / factory

Function factory

test/embind/embind.test.js:2973–2975  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2971 BaseFixture.extend("val::new_", function() {
2972 test("variety of types", function() {
2973 function factory() {
2974 this.arguments = Array.prototype.slice.call(arguments, 0);
2975 }
2976 var instance = cm.construct_with_6_arguments(factory);
2977 assert.deepEqual(
2978 [6, -12.5, "a3", {x: 1, y: 2, z: 3, w: 4}, cm.EnumClass.TWO, [-1, -2, -3, -4]],

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected