Commit fa726bed authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Use already running interpreter for execution new expressions.

parent 2d35954a
......@@ -963,7 +963,7 @@ static HRESULT interp_new(script_ctx_t *ctx)
return throw_type_error(ctx, JS_E_INVALID_PROPERTY, NULL);
clear_ret(frame);
return disp_call_value(ctx, get_object(constr), NULL, DISPATCH_CONSTRUCT,
return disp_call_value(ctx, get_object(constr), NULL, DISPATCH_CONSTRUCT | DISPATCH_JSCRIPT_CALLEREXECSSOURCE,
argc, stack_args(ctx, argc), &frame->ret);
}
......@@ -2604,7 +2604,6 @@ HRESULT exec_source(script_ctx_t *ctx, DWORD flags, bytecode_t *bytecode, functi
frame->ip = function->instr_off;
frame->stack_base = ctx->stack_top;
frame->ret = jsval_undefined();
if(scope)
frame->base_scope = frame->scope = scope_addref(scope);
......
......@@ -334,7 +334,7 @@ HRESULT Function_invoke(jsdisp_t *func_this, IDispatch *jsthis, WORD flags, unsi
if(FAILED(hres))
return hres;
hres = invoke_source(function->dispex.ctx, function, to_disp(this_obj), argc, argv, TRUE, FALSE, r);
hres = invoke_source(function->dispex.ctx, function, to_disp(this_obj), argc, argv, TRUE, caller_execs_source, r);
jsdisp_release(this_obj);
return hres;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment