diff --git a/js/src/jsobjinlines.h b/js/src/jsobjinlines.h index cd0708477723..c718b344d6d6 100644 --- a/js/src/jsobjinlines.h +++ b/js/src/jsobjinlines.h @@ -45,6 +45,10 @@ #include "jsiter.h" #include "jsscope.h" +#ifdef INCLUDE_MOZILLA_DTRACE +#include "jsdtracef.h" +#endif + #include "jsscopeinlines.h" inline jsval diff --git a/js/src/jstypedarray.cpp b/js/src/jstypedarray.cpp index abe97afd180a..e57b7c848e95 100644 --- a/js/src/jstypedarray.cpp +++ b/js/src/jstypedarray.cpp @@ -121,7 +121,7 @@ ArrayBuffer::create(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { if (!obj) { - obj = js_NewObject(cx, &ArrayBuffer::jsclass, NULL, NULL); + obj = NewObject(cx, &ArrayBuffer::jsclass, NULL, NULL); if (!obj) return false; *rval = OBJECT_TO_JSVAL(obj); @@ -708,7 +708,7 @@ class TypedArrayTemplate create(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { if (!obj) { - obj = js_NewObject(cx, slowClass(), NULL, NULL); + obj = NewObject(cx, slowClass(), NULL, NULL); if (!obj) return false; *rval = OBJECT_TO_JSVAL(obj);