function test_func(vec3) { if (vec3.x !== 1.5 || vec3.y !== 2.5 || vec3.z !== -3.5) { throw new Error("unexpected Vec3 components"); } mark_success(); }