Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user