MCPcopy Create free account
hub / github.com/esengine/esengine / _assertClass

Function _assertClass

packages/rapier2d/pkg/rapier_wasm2d.js:97–101  ·  view source on GitHub ↗
(instance, klass)

Source from the content-addressed store, hash-verified

95}
96
97function _assertClass(instance, klass) {
98 if (!(instance instanceof klass)) {
99 throw new Error(`expected instance of ${klass.name}`);
100 }
101}
102
103let stack_pointer = 128;
104

Callers 15

projectPointMethod · 0.85
castRayAndGetNormalMethod · 0.85
intersectionsWithRayMethod · 0.85
intersectionWithShapeMethod · 0.85
castRayMethod · 0.85
castShapeMethod · 0.85
createColliderMethod · 0.85
removeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected