Bug 1013646 - Fix build failure with GCC < 4.7 after bug 992357. r=jchen
This commit is contained in:
@@ -442,7 +442,7 @@ struct PrimitiveProperty
|
|||||||
for (size_t i = 0; i < length; i++) {
|
for (size_t i = 0; i < length; i++) {
|
||||||
JS::RootedValue elem(cx);
|
JS::RootedValue elem(cx);
|
||||||
if (!CheckJSCall(env, JS_GetElement(cx, array, i, &elem)) ||
|
if (!CheckJSCall(env, JS_GetElement(cx, array, i, &elem)) ||
|
||||||
!CheckProperty<InValue>(env, cx, elem)) {
|
!CheckProperty<PrimitiveProperty::InValue>(env, cx, elem)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
buffer[i] = FromValue(env, instance, cx, elem);
|
buffer[i] = FromValue(env, instance, cx, elem);
|
||||||
|
|||||||
Reference in New Issue
Block a user