Bug 1013646 - Fix build failure with GCC < 4.7 after bug 992357. r=jchen

This commit is contained in:
Mike Hommey
2014-05-21 11:28:39 +09:00
parent 1f383c6657
commit ae3c5baac4

View File

@@ -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);