jscript: Removed no longer used argument from exec_source.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1d94ec8581
commit
061592a205
|
@ -2543,7 +2543,7 @@ static HRESULT bind_event_target(script_ctx_t *ctx, function_code_t *func, jsdis
|
|||
return hres;
|
||||
}
|
||||
|
||||
HRESULT exec_source(exec_ctx_t *ctx, bytecode_t *code, function_code_t *func, BOOL from_eval, jsval_t *ret)
|
||||
HRESULT exec_source(exec_ctx_t *ctx, bytecode_t *code, function_code_t *func, jsval_t *ret)
|
||||
{
|
||||
exec_ctx_t *prev_ctx;
|
||||
jsval_t val;
|
||||
|
|
|
@ -218,5 +218,5 @@ static inline void exec_addref(exec_ctx_t *ctx)
|
|||
|
||||
void exec_release(exec_ctx_t*) DECLSPEC_HIDDEN;
|
||||
HRESULT create_exec_ctx(script_ctx_t*,IDispatch*,jsdisp_t*,scope_chain_t*,BOOL,exec_ctx_t**) DECLSPEC_HIDDEN;
|
||||
HRESULT exec_source(exec_ctx_t*,bytecode_t*,function_code_t*,BOOL,jsval_t*) DECLSPEC_HIDDEN;
|
||||
HRESULT exec_source(exec_ctx_t*,bytecode_t*,function_code_t*,jsval_t*) DECLSPEC_HIDDEN;
|
||||
HRESULT create_source_function(script_ctx_t*,bytecode_t*,function_code_t*,scope_chain_t*,jsdisp_t**) DECLSPEC_HIDDEN;
|
||||
|
|
|
@ -247,7 +247,7 @@ static HRESULT invoke_source(script_ctx_t *ctx, FunctionInstance *function, IDis
|
|||
|
||||
prev_args = function->arguments;
|
||||
function->arguments = arg_disp;
|
||||
hres = exec_source(exec_ctx, function->code, function->func_code, FALSE, r);
|
||||
hres = exec_source(exec_ctx, function->code, function->func_code, r);
|
||||
function->arguments = prev_args;
|
||||
|
||||
exec_release(exec_ctx);
|
||||
|
|
|
@ -222,7 +222,7 @@ static HRESULT JSGlobal_eval(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, uns
|
|||
return throw_syntax_error(ctx, hres, NULL);
|
||||
}
|
||||
|
||||
hres = exec_source(ctx->exec_ctx, code, &code->global_code, TRUE, r);
|
||||
hres = exec_source(ctx->exec_ctx, code, &code->global_code, r);
|
||||
release_bytecode(code);
|
||||
return hres;
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ static HRESULT exec_global_code(JScript *This, bytecode_t *code)
|
|||
IActiveScriptSite_OnEnterScript(This->site);
|
||||
|
||||
clear_ei(This->ctx);
|
||||
hres = exec_source(exec_ctx, code, &code->global_code, FALSE, NULL);
|
||||
hres = exec_source(exec_ctx, code, &code->global_code, NULL);
|
||||
exec_release(exec_ctx);
|
||||
|
||||
IActiveScriptSite_OnLeaveScript(This->site);
|
||||
|
@ -781,7 +781,7 @@ static HRESULT WINAPI JScriptParse_ParseScriptText(IActiveScriptParse *iface,
|
|||
IActiveScriptSite_OnEnterScript(This->site);
|
||||
|
||||
clear_ei(This->ctx);
|
||||
hres = exec_source(exec_ctx, code, &code->global_code, TRUE, &r);
|
||||
hres = exec_source(exec_ctx, code, &code->global_code, &r);
|
||||
if(SUCCEEDED(hres)) {
|
||||
if(pvarResult)
|
||||
hres = jsval_to_variant(r, pvarResult);
|
||||
|
|
Loading…
Reference in New Issue