vbscript: Added parameterized member assignment statement implementation.
This commit is contained in:
parent
1bc8db6005
commit
d0be36213a
|
@ -682,11 +682,6 @@ static HRESULT interp_assign_member(exec_ctx_t *ctx)
|
||||||
|
|
||||||
TRACE("%s\n", debugstr_w(identifier));
|
TRACE("%s\n", debugstr_w(identifier));
|
||||||
|
|
||||||
if(arg_cnt) {
|
|
||||||
FIXME("arguments not supported\n");
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
|
||||||
|
|
||||||
hres = stack_assume_disp(ctx, arg_cnt+1, &obj);
|
hres = stack_assume_disp(ctx, arg_cnt+1, &obj);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
@ -708,7 +703,7 @@ static HRESULT interp_assign_member(exec_ctx_t *ctx)
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
stack_popn(ctx, 2);
|
stack_popn(ctx, arg_cnt+2);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1288,6 +1288,12 @@ static void run_tests(void)
|
||||||
CHECK_CALLED(global_propargput_d);
|
CHECK_CALLED(global_propargput_d);
|
||||||
CHECK_CALLED(global_propargput_i);
|
CHECK_CALLED(global_propargput_i);
|
||||||
|
|
||||||
|
SET_EXPECT(global_propargput_d);
|
||||||
|
SET_EXPECT(global_propargput_i);
|
||||||
|
parse_script_a("test.propargput(counter(), counter()) = counter()");
|
||||||
|
CHECK_CALLED(global_propargput_d);
|
||||||
|
CHECK_CALLED(global_propargput_i);
|
||||||
|
|
||||||
parse_script_a("x = 1\n Call ok(x = 1, \"x = \" & x)");
|
parse_script_a("x = 1\n Call ok(x = 1, \"x = \" & x)");
|
||||||
|
|
||||||
parse_script_a("x = _ \n3");
|
parse_script_a("x = _ \n3");
|
||||||
|
|
Loading…
Reference in New Issue