mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 06:06:13 +00:00
jscript: Directly return error code instead of using throw_syntax_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2224736967
commit
df70647b00
2 changed files with 1 additions and 2 deletions
|
@ -303,7 +303,7 @@ static HRESULT EnumeratorConstr_value(script_ctx_t *ctx, vdisp_t *vthis, WORD fl
|
|||
switch(flags) {
|
||||
case DISPATCH_CONSTRUCT: {
|
||||
if (argc > 1)
|
||||
return throw_syntax_error(ctx, JS_E_INVALIDARG, NULL);
|
||||
return JS_E_INVALIDARG;
|
||||
|
||||
hres = create_enumerator(ctx, (argc == 1) ? &argv[0] : 0, &obj);
|
||||
if(FAILED(hres))
|
||||
|
|
|
@ -312,7 +312,6 @@ HRESULT Function_get_value(script_ctx_t*,jsdisp_t*,jsval_t*) DECLSPEC_HIDDEN;
|
|||
struct _function_code_t *Function_get_code(jsdisp_t*) DECLSPEC_HIDDEN;
|
||||
#define DEFAULT_FUNCTION_VALUE {NULL, Function_value,0, Function_get_value}
|
||||
|
||||
HRESULT throw_syntax_error(script_ctx_t*,HRESULT,const WCHAR*) DECLSPEC_HIDDEN;
|
||||
HRESULT throw_type_error(script_ctx_t*,HRESULT,const WCHAR*) DECLSPEC_HIDDEN;
|
||||
jsdisp_t *create_builtin_error(script_ctx_t *ctx) DECLSPEC_HIDDEN;
|
||||
|
||||
|
|
Loading…
Reference in a new issue