Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem

This commit is contained in:
Ehsan Akhgari
2014-05-25 21:46:24 -04:00
parent 5bcd509591
commit 5292a10a42
188 changed files with 847 additions and 837 deletions

View File

@@ -97,7 +97,7 @@ BEGIN_TEST(testChromeBuffer)
bytes, strlen(bytes), options));
JS::RootedValue rval(cx);
CHECK(JS_CallFunction(cx, JS::NullPtr(), fun, v, &rval));
CHECK(JS_CallFunction(cx, JS::NullPtr(), fun, JS::HandleValueArray(v), &rval));
CHECK(rval.toInt32() == 100);
}
@@ -137,7 +137,7 @@ BEGIN_TEST(testChromeBuffer)
bytes, strlen(bytes), options));
JS::RootedValue rval(cx);
CHECK(JS_CallFunction(cx, JS::NullPtr(), fun, v, &rval));
CHECK(JS_CallFunction(cx, JS::NullPtr(), fun, JS::HandleValueArray(v), &rval));
bool match;
CHECK(JS_StringEqualsAscii(cx, rval.toString(), "From trusted: InternalError: too much recursion", &match));
CHECK(match);
@@ -175,7 +175,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(JS_CallFunction(cx, JS::NullPtr(), fun, JS::HandleValueArray(arg), &rval));
CHECK(rval.toInt32() == 42);
}