mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 492840 - Fix a conflict with myself in the previous push. Aaargh...
This commit is contained in:
parent
49c30c2502
commit
e59ff3661d
@ -2802,10 +2802,10 @@ obj_create(JSContext *cx, uintN argc, jsval *vp)
|
||||
AutoDescriptorArray descs(cx);
|
||||
size_t len = ida.length();
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
PropertyDescriptor desc;
|
||||
jsid id = ida[i];
|
||||
if (!JS_GetPropertyById(cx, props, id, &vp[1]) || !desc.initialize(cx, id, vp[1]) ||
|
||||
!descs.append(desc)) {
|
||||
PropertyDescriptor *desc = descs.append();
|
||||
if (!desc || !JS_GetPropertyById(cx, props, id, &vp[1]) ||
|
||||
!desc->initialize(cx, id, vp[1])) {
|
||||
return JS_FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user