From: <br...@us...> - 2012-04-29 03:06:47
|
Revision: 4271 http://openvrml.svn.sourceforge.net/openvrml/?rev=4271&view=rev Author: braden Date: 2012-04-29 03:06:39 +0000 (Sun, 29 Apr 2012) Log Message: ----------- XULRunner 12.0 removes the JSObject* prototype argument from JS_ConstructObject. Modified Paths: -------------- branches/0.18/ChangeLog branches/0.18/configure.ac branches/0.18/src/script/javascript.cpp Property Changed: ---------------- branches/0.18/ Property changes on: branches/0.18 ___________________________________________________________________ Modified: svn:mergeinfo - /branches/0.17:3713,3717,3719,3721,3725,3730,3732,3743,3746,3748,3750,3752,3754,3757,3759-3760,3764,3766,3824,3828,3836 /branches/local:3677-3689 /branches/node-modules:3622-3623,3632-3635,3637-3638,3640-3641,3643-3644,3646-3647,3649-3650,3654-3655,3657-3658,3661-3662,3664-3665,3667-3668,3670-3671,3673-3674,3684-3685,3687-3688,3736-3801 /trunk:3958,3965,3967,3969,3971,3973,3975-3976,3979,3981,3983,3985,3987,3989,3991,3997,3999,4001,4003,4005,4011,4013-4014,4017,4019,4021,4024,4026,4028,4030,4032,4041,4043,4045,4047,4053,4055,4057,4059,4061,4063,4065,4067,4069,4071,4073,4075,4077,4079,4081,4083,4085,4087,4089,4091,4093,4095,4097,4099,4101,4107-4108,4113,4115,4117,4119-4120,4122,4124,4129,4131,4133,4135,4137,4139,4141,4143,4145,4147-4148,4150,4156,4159-4160,4162,4164,4169,4171,4174,4178-4179,4181,4183,4186,4188,4190,4192,4194,4196,4198-4199,4201,4203,4206,4208,4210,4212,4214,4216,4218,4220,4222,4224,4226,4228,4230,4232,4236,4243,4245,4247,4249,4251,4253,4255,4257,4259,4261,4264,4266,4268 + /branches/0.17:3713,3717,3719,3721,3725,3730,3732,3743,3746,3748,3750,3752,3754,3757,3759-3760,3764,3766,3824,3828,3836 /branches/local:3677-3689 /branches/node-modules:3622-3623,3632-3635,3637-3638,3640-3641,3643-3644,3646-3647,3649-3650,3654-3655,3657-3658,3661-3662,3664-3665,3667-3668,3670-3671,3673-3674,3684-3685,3687-3688,3736-3801 /trunk:3958,3965,3967,3969,3971,3973,3975-3976,3979,3981,3983,3985,3987,3989,3991,3997,3999,4001,4003,4005,4011,4013-4014,4017,4019,4021,4024,4026,4028,4030,4032,4041,4043,4045,4047,4053,4055,4057,4059,4061,4063,4065,4067,4069,4071,4073,4075,4077,4079,4081,4083,4085,4087,4089,4091,4093,4095,4097,4099,4101,4107-4108,4113,4115,4117,4119-4120,4122,4124,4129,4131,4133,4135,4137,4139,4141,4143,4145,4147-4148,4150,4156,4159-4160,4162,4164,4169,4171,4174,4178-4179,4181,4183,4186,4188,4190,4192,4194,4196,4198-4199,4201,4203,4206,4208,4210,4212,4214,4216,4218,4220,4222,4224,4226,4228,4230,4232,4236,4243,4245,4247,4249,4251,4253,4255,4257,4259,4261,4264,4266,4268,4270 Modified: branches/0.18/ChangeLog =================================================================== --- branches/0.18/ChangeLog 2012-04-29 03:04:50 UTC (rev 4270) +++ branches/0.18/ChangeLog 2012-04-29 03:06:39 UTC (rev 4271) @@ -1,3 +1,11 @@ +2012-04-28 Braden McDaniel <br...@en...> + + XULRunner 12.0 removes the JSObject* prototype argument from + JS_ConstructObject. + + * configure.ac + * src/script/javascript.cpp + 2012-04-27 Braden McDaniel <br...@en...> * doc/Makefile.am (JAVADOC_RESOURCES_FILES): javadoc does not Modified: branches/0.18/configure.ac =================================================================== --- branches/0.18/configure.ac 2012-04-29 03:04:50 UTC (rev 4270) +++ branches/0.18/configure.ac 2012-04-29 03:06:39 UTC (rev 4271) @@ -284,6 +284,26 @@ [Defined if SpiderMonkey has JSStrictPropertyOp])]) # +# XULRunner 12.0 removes the JSObject* prototype argument from +# JS_ConstructObject. +# +AC_CACHE_CHECK([whether JS_ConstructObject is missing the prototype argument], +[ov_cv_js_constructobject_without_proto], +[ov_cv_js_constructobject_without_proto=no +ov_save_CPPFLAGS=$CPPFLAGS +CPPFLAGS="$JS_CFLAGS $CPPFLAGS" +AC_LANG_ASSERT([C]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM( +[[#include <jsapi.h>]], +[[JS_ConstructObject(0, 0, 0)]])], +[ov_cv_js_constructobject_without_proto=yes]) +CPPFLAGS=$ov_save_CPPFLAGS +]) +AS_IF([test X$ov_cv_js_constructobject_without_proto = Xyes], + [AC_DEFINE([OPENVRML_JS_CONSTRUCTOBJECT_WITHOUT_PROTO], [1], + [Defined if JS_ConstructObject is missing the prototype argument])]) + +# # openvrml-xembed and openvrml-player both use GOption, which was # introduced in GLib 2.6. # Modified: branches/0.18/src/script/javascript.cpp =================================================================== --- branches/0.18/src/script/javascript.cpp 2012-04-29 03:04:50 UTC (rev 4270) +++ branches/0.18/src/script/javascript.cpp 2012-04-29 03:06:39 UTC (rev 4271) @@ -110,6 +110,40 @@ # endif } + OPENVRML_LOCAL + JSObject * + js_construct_object(JSContext * const cx, + JSClass * const clasp, + JSObject * const proto, + JSObject * const parent) + { + assert(!proto); +# ifndef OPENVRML_JS_CONSTRUCTOBJECT_WITHOUT_PROTO + return JS_ConstructObject(cx, clasp, parent); +# else + return JS_ConstructObject(cx, clasp, proto, parent); +# endif + } + + OPENVRML_LOCAL + JSObject * + js_construct_object_with_arguments(JSContext * const cx, + JSClass * const clasp, + JSObject * const proto, + JSObject * const parent, + const uintN argc, + jsval * const argv) + { + assert(!proto); +# ifndef OPENVRML_JS_CONSTRUCTOBJECT_WITHOUT_PROTO + return js_construct_object_with_arguments(cx, clasp, parent, argc, argv); +# else + return js_construct_object_with_arguments(cx, clasp, proto, parent, + argc, argv); +# endif + } + + # ifdef OPENVRML_FAST_JSNATIVE # define OPENVRML_DECLARE_JSNATIVE(name) \ JSBool (name)(JSContext * cx, uintN argc, jsval * vp) @@ -2640,7 +2674,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const sfcolorObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const sfcolorObj = js_construct_object(cx, &jsclass, 0, obj); if (!sfcolorObj) { return JS_FALSE; } assert(JS_GetPrivate(cx, sfcolorObj)); @@ -3439,7 +3473,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const sfrotationObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const sfrotationObj = js_construct_object(cx, &jsclass, 0, obj); if (!sfrotationObj) { return JS_FALSE; } assert(JS_GetPrivate(cx, sfrotationObj)); @@ -3679,7 +3713,7 @@ &obj_sfdata.field_value()); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3f::jsclass, 0, + js_construct_object(cx, &SFVec3f::jsclass, 0, OPENVRML_JS_THIS_OBJECT(cx, vp)); if (!robj) { return JS_FALSE; } @@ -3709,7 +3743,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFRotation::jsclass, proto, parent); + js_construct_object(cx, &SFRotation::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -3758,7 +3792,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFRotation::jsclass, proto, parent); + js_construct_object(cx, &SFRotation::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -3807,7 +3841,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3f::jsclass, proto, parent); + js_construct_object(cx, &SFVec3f::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -3899,7 +3933,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFRotation::jsclass, proto, parent); + js_construct_object(cx, &SFRotation::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -3976,7 +4010,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const sfvec2Obj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const sfvec2Obj = js_construct_object(cx, &jsclass, 0, obj); if (!sfvec2Obj) { return JS_FALSE; } assert(JS_GetPrivate(cx, sfvec2Obj)); @@ -4176,7 +4210,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec2::jsclass, proto, parent); + js_construct_object(cx, &SFVec2::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4219,7 +4253,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec2::jsclass, proto, parent); + js_construct_object(cx, &SFVec2::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4320,7 +4354,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec2::jsclass, proto, parent); + js_construct_object(cx, &SFVec2::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4354,7 +4388,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec2::jsclass, proto, parent); + js_construct_object(cx, &SFVec2::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4388,7 +4422,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec2::jsclass, proto, parent); + js_construct_object(cx, &SFVec2::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4442,7 +4476,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec2::jsclass, proto, parent); + js_construct_object(cx, &SFVec2::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4484,7 +4518,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const sfvec2dObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const sfvec2dObj = js_construct_object(cx, &jsclass, 0, obj); if (!sfvec2dObj) { return JS_FALSE; } assert(JS_GetPrivate(cx, sfvec2dObj)); @@ -4583,7 +4617,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const sfvec3fObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const sfvec3fObj = js_construct_object(cx, &jsclass, 0, obj); if (!sfvec3fObj) { return JS_FALSE; } assert(JS_GetPrivate(cx, sfvec3fObj)); @@ -4787,7 +4821,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4841,7 +4875,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) {return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4884,7 +4918,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -4985,7 +5019,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -5019,7 +5053,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -5053,7 +5087,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -5107,7 +5141,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3::jsclass, proto, parent); + js_construct_object(cx, &SFVec3::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -5148,7 +5182,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const sfvec3dObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const sfvec3dObj = js_construct_object(cx, &jsclass, 0, obj); if (!sfvec3dObj) { return JS_FALSE; } assert(JS_GetPrivate(cx, sfvec3dObj)); @@ -5416,7 +5450,7 @@ try { for (size_t i = length; i < newArray.size(); ++i) { JSObject * const element = - JS_ConstructObject(cx, &Subclass::sfjsclass, 0, 0); + js_construct_object(cx, &Subclass::sfjsclass, 0, 0); if (!element) { throw std::bad_alloc(); } newArray[i] = OBJECT_TO_JSVAL(element); } @@ -5746,7 +5780,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfboolObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfboolObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfboolObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(bools.size()); @@ -5963,7 +5997,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfcolorObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfcolorObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfcolorObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(colors.size()); @@ -6014,7 +6048,7 @@ assert(obj); assert(rval); - JSObject * const mffloatObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mffloatObj = js_construct_object(cx, &jsclass, 0, obj); if (!mffloatObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(floats.size()); @@ -6089,7 +6123,7 @@ assert(obj); assert(rval); - JSObject * const mfdoubleObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfdoubleObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfdoubleObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(doubles.size()); @@ -6185,7 +6219,7 @@ assert(obj); assert(rval); - JSObject * const mfint32Obj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfint32Obj = js_construct_object(cx, &jsclass, 0, obj); if (!mfint32Obj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(int32s.size()); @@ -6450,7 +6484,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfnodeObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfnodeObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfnodeObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(nodes.size()); @@ -6610,8 +6644,9 @@ for (size_t i = length; i < newArray.size(); ++i) { JSObject * const element = - JS_ConstructObjectWithArguments(cx, &sfnode_jsclass, 0, 0, - 1, &arg); + js_construct_object_with_arguments(cx, &sfnode_jsclass, + 0, 0, + 1, &arg); if (!element) { throw std::bad_alloc(); } newArray[i] = OBJECT_TO_JSVAL(element); } @@ -6704,7 +6739,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfrotationObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfrotationObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfrotationObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(rotations.size()); @@ -6807,7 +6842,7 @@ assert(cx); assert(obj); assert(rval); - JSObject * const mfstringObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfstringObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfstringObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(strings.size()); @@ -7050,7 +7085,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mftimeObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mftimeObj = js_construct_object(cx, &jsclass, 0, obj); if (!mftimeObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(times.size()); @@ -7123,7 +7158,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfvec2fObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfvec2fObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfvec2fObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(vec2fs.size()); @@ -7204,7 +7239,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfvec2dObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfvec2dObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfvec2dObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(vec2ds.size()); @@ -7285,7 +7320,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfvec3fObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfvec3fObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfvec3fObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(vec3fs.size()); @@ -7367,7 +7402,7 @@ jsval * const rval) OPENVRML_NOTHROW { - JSObject * const mfvec3dObj = JS_ConstructObject(cx, &jsclass, 0, obj); + JSObject * const mfvec3dObj = js_construct_object(cx, &jsclass, 0, obj); if (!mfvec3dObj) { return JS_FALSE; } jsval length = INT_TO_JSVAL(vec3ds.size()); @@ -7624,7 +7659,7 @@ // // Construct the result object. // - JSObject * const robj = JS_ConstructObject(cx, &Row::jsclass, 0, + JSObject * const robj = js_construct_object(cx, &Row::jsclass, 0, JS_GetParent(cx, obj)); if (!robj) { return JS_FALSE; } @@ -7809,7 +7844,7 @@ using openvrml::mat4f; JSObject * const robj = - JS_ConstructObject(cx, &VrmlMatrix::jsclass, 0, + js_construct_object(cx, &VrmlMatrix::jsclass, 0, JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp))); if (!robj) { return JS_FALSE; } @@ -7831,7 +7866,7 @@ using openvrml::mat4f; JSObject * const robj = - JS_ConstructObject(cx, &VrmlMatrix::jsclass, 0, + js_construct_object(cx, &VrmlMatrix::jsclass, 0, JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp))); if (!robj) { return JS_FALSE; } @@ -7875,7 +7910,7 @@ // Construct the result object. // JSObject * const robj = - JS_ConstructObject(cx, &VrmlMatrix::jsclass, 0, + js_construct_object(cx, &VrmlMatrix::jsclass, 0, JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp))); if (!robj) { return JS_FALSE; } @@ -7915,7 +7950,7 @@ // Construct the result object. // JSObject * const robj = - JS_ConstructObject(cx, &VrmlMatrix::jsclass, 0, + js_construct_object(cx, &VrmlMatrix::jsclass, 0, JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp))); if (!robj) { return JS_FALSE; } @@ -7965,7 +8000,7 @@ JSObject * const parent = JS_GetParent(cx, OPENVRML_JS_THIS_OBJECT(cx, vp)); JSObject * const robj = - JS_ConstructObject(cx, &SFVec3f::jsclass, proto, parent); + js_construct_object(cx, &SFVec3f::jsclass, proto, parent); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); @@ -8013,9 +8048,9 @@ // Construct the result object. // JSObject * const robj = - JS_ConstructObject(cx, &SFVec3f::jsclass, 0, - JS_GetParent(cx, - OPENVRML_JS_THIS_OBJECT(cx, vp))); + js_construct_object(cx, &SFVec3f::jsclass, 0, + JS_GetParent(cx, + OPENVRML_JS_THIS_OBJECT(cx, vp))); if (!robj) { return JS_FALSE; } assert(JS_GetPrivate(cx, robj)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |