diff -upa freewrl-1.22.13/src/lib/world_script/jsVRML_SFClasses.c.jsgp freewrl-1.22.13/src/lib/world_script/jsVRML_SFClasses.c
--- freewrl-1.22.13/src/lib/world_script/jsVRML_SFClasses.c.jsgp 2013-02-01 13:11:29.660314576 +0100
+++ freewrl-1.22.13/src/lib/world_script/jsVRML_SFClasses.c 2013-02-01 13:16:54.821338611 +0100
@@ -1905,7 +1905,7 @@ SFRotationInverse(JSContext *cx, uint32_
printf ("start of SFRotationInverse\n");
#endif
- if ((_proto = JS_GetPrototype(obj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, obj)) == NULL) {
printf( "JS_GetPrototype failed in SFRotationInverse.\n");
return JS_FALSE;
}
@@ -1974,7 +1974,7 @@ SFRotationMultiply(JSContext *cx, uint32
}
CHECK_CLASS(cx,_multObj,argv,__FUNCTION__,SFRotationClass)
- if ((_proto = JS_GetPrototype(_multObj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, _multObj)) == NULL) {
printf( "JS_GetPrototype failed in SFRotationMultiply.\n");
return JS_FALSE;
}
@@ -2055,7 +2055,7 @@ SFRotationMultVec(JSContext *cx, uint32_
CHECK_CLASS(cx,_multObj,argv,__FUNCTION__,SFVec3fClass)
- if ((_proto = JS_GetPrototype(_multObj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, _multObj)) == NULL) {
printf( "JS_GetPrototype failed in SFRotationMultVec.\n");
return JS_FALSE;
}
@@ -2198,7 +2198,7 @@ SFRotationSlerp(JSContext *cx, uint32_t
} else if (APPROX(t, 1)) {
*rval = OBJECT_TO_JSVAL(_destObj);
} else {
- if ((_proto = JS_GetPrototype(_destObj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, _destObj)) == NULL) {
printf( "JS_GetPrototype failed in SFRotationSlerp.\n");
return JS_FALSE;
}
@@ -2770,7 +2770,7 @@ JSBool SFVec2fGeneric( JSContext *cx, JS
/* set the return object */
if (retSFVec2f) {
- if ((_proto = JS_GetPrototype(obj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, obj)) == NULL) {
printf( "JS_GetPrototype failed in SFVec2f.\n");
return JS_FALSE;
}
@@ -3331,7 +3331,7 @@ JSBool SFVec3fGeneric( JSContext *cx, JS
#ifdef JSVRMLCLASSESVERBOSE
printf ("returning SFVec3f\n");
#endif
- if ((_proto = JS_GetPrototype(obj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, obj)) == NULL) {
printf( "JS_GetPrototype failed in SFVec3f.\n");
return JS_FALSE;
}
@@ -3983,7 +3983,7 @@ JSBool SFVec3dGeneric( JSContext *cx, JS
#ifdef JSVRMLCLASSESVERBOSE
printf ("returning SFVec3d\n");
#endif
- if ((_proto = JS_GetPrototype(obj)) == NULL) {
+ if ((_proto = JS_GetPrototype(cx, obj)) == NULL) {
printf( "JS_GetPrototype failed in SFVec3d.\n");
return JS_FALSE;
}