Bug 941590 - Build jsapi-tests in unified mode. r=ehsan,luke

This commit is contained in:
Jan de Mooij
2013-11-21 16:42:01 +01:00
parent 1b131491ff
commit abc572da25
23 changed files with 147 additions and 146 deletions

View File

@@ -6,11 +6,11 @@
#include "jsapi-tests/tests.h"
JSPrincipals system_principals = {
static JSPrincipals system_principals = {
1
};
const JSClass global_class = {
static const JSClass global_class = {
"global",
JSCLASS_IS_GLOBAL | JSCLASS_GLOBAL_FLAGS,
JS_PropertyStub,
@@ -22,10 +22,10 @@ const JSClass global_class = {
JS_ConvertStub
};
JSObject *trusted_glob = nullptr;
JSObject *trusted_fun = nullptr;
static JSObject *trusted_glob = nullptr;
static JSObject *trusted_fun = nullptr;
bool
static bool
CallTrusted(JSContext *cx, unsigned argc, jsval *vp)
{
if (!JS_SaveFrameChain(cx))