[PATCH v9 1/4] jscript: Get rid of the variable_obj parameter to exec_source.
Jacek Caban
jacek at codeweavers.com
Thu Mar 12 11:55:04 CDT 2020
Hi Gabriel,
On 12.03.2020 17:35, Gabriel Ivăncescu wrote:
> @@ -2997,6 +2998,18 @@ HRESULT exec_source(script_ctx_t *ctx, DWORD flags, bytecode_t *bytecode, functi
> }
> }
>
> + if(flags & (EXEC_GLOBAL | EXEC_EVAL)) {
> + if(ctx->call_ctx)
> + variable_obj = ctx->call_ctx->variable_obj;
I think that only eval() should inherit caller's variable_obj. It would
be even better to do that only for eval with EXEC_RETURN_TO_INTERP.
Thanks,
Jacek
More information about the wine-devel
mailing list