jscript: Create Array objects from proper constructor.
This commit is contained in:
parent
73e192a6b3
commit
90af81f405
|
@ -872,7 +872,7 @@ static HRESULT alloc_array(script_ctx_t *ctx, DispatchEx *object_prototype, Arra
|
||||||
if(object_prototype)
|
if(object_prototype)
|
||||||
hres = init_dispex(&array->dispex, ctx, &Array_info, object_prototype);
|
hres = init_dispex(&array->dispex, ctx, &Array_info, object_prototype);
|
||||||
else
|
else
|
||||||
hres = init_dispex_from_constr(&array->dispex, ctx, &Array_info, ctx->object_constr);
|
hres = init_dispex_from_constr(&array->dispex, ctx, &Array_info, ctx->array_constr);
|
||||||
|
|
||||||
if(FAILED(hres)) {
|
if(FAILED(hres)) {
|
||||||
heap_free(array);
|
heap_free(array);
|
||||||
|
|
Loading…
Reference in New Issue