Bug 952650 (part 11) - Remove JSVAL_TO_INT. r=njn.

This commit is contained in:
Rodrigo Rodriguez Jr.
2014-04-27 19:55:08 -07:00
parent 3d9f96fd48
commit 76724a5e28
18 changed files with 38 additions and 45 deletions

View File

@@ -98,7 +98,7 @@ BEGIN_TEST(testChromeBuffer)
JS::RootedValue rval(cx);
CHECK(JS_CallFunction(cx, JS::NullPtr(), fun, v, &rval));
CHECK(JSVAL_TO_INT(rval) == 100);
CHECK(rval.toInt32() == 100);
}
/*
@@ -176,7 +176,7 @@ BEGIN_TEST(testChromeBuffer)
JS::RootedValue arg(cx, JS::ObjectValue(*callTrusted));
JS::RootedValue rval(cx);
CHECK(JS_CallFunction(cx, JS::NullPtr(), fun, arg, &rval));
CHECK(JSVAL_TO_INT(rval) == 42);
CHECK(rval.toInt32() == 42);
}
return true;