Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f89fbb9b
Commit
f89fbb9b
authored
Jul 20, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Throw TypeError in call_expression_eval.
parent
789afcdc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
engine.c
dlls/jscript/engine.c
+2
-5
jscript_En.rc
dlls/jscript/jscript_En.rc
+1
-0
resource.h
dlls/jscript/resource.h
+1
-0
api.js
dlls/jscript/tests/api.js
+2
-0
No files found.
dlls/jscript/engine.c
View file @
f89fbb9b
...
...
@@ -1539,11 +1539,8 @@ HRESULT call_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags,
if
(
SUCCEEDED
(
hres
))
{
switch
(
exprval
.
type
)
{
case
EXPRVAL_VARIANT
:
if
(
V_VT
(
&
exprval
.
u
.
var
)
!=
VT_DISPATCH
)
{
FIXME
(
"throw TypeError
\n
"
);
hres
=
E_NOTIMPL
;
break
;
}
if
(
V_VT
(
&
exprval
.
u
.
var
)
!=
VT_DISPATCH
)
return
throw_type_error
(
ctx
->
var_disp
->
ctx
,
ei
,
IDS_NO_PROPERTY
,
NULL
);
hres
=
disp_call
(
V_DISPATCH
(
&
exprval
.
u
.
var
),
DISPID_VALUE
,
ctx
->
parser
->
script
->
lcid
,
DISPATCH_METHOD
,
&
dp
,
flags
&
EXPR_NOVAL
?
NULL
:
&
var
,
ei
,
NULL
/*FIXME*/
);
...
...
dlls/jscript/jscript_En.rc
View file @
f89fbb9b
...
...
@@ -22,6 +22,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
IDS_NO_PROPERTY "Object doesn't support this property or method"
IDS_ARG_NOT_OPT "Argument not optional"
IDS_NOT_DATE "'[object]' is not a date object"
IDS_NOT_BOOL "Boolean object expected"
...
...
dlls/jscript/resource.h
View file @
f89fbb9b
...
...
@@ -18,6 +18,7 @@
#include <windef.h>
#define IDS_NO_PROPERTY 0x01B6
#define IDS_ARG_NOT_OPT 0x01c1
#define IDS_NOT_DATE 0x138E
#define IDS_NOT_BOOL 0x1392
...
...
dlls/jscript/tests/api.js
View file @
f89fbb9b
...
...
@@ -1300,5 +1300,7 @@ function exception_test(func, type) {
exception_test
(
function
()
{
arr
.
toString
=
Date
.
prototype
.
toString
;
arr
.
toString
();},
"TypeError"
);
exception_test
(
function
()
{
Array
(
-
3
);},
"RangeError"
);
exception_test
(
function
()
{
arr
.
toString
=
Boolean
.
prototype
.
toString
;
arr
.
toString
();},
"TypeError"
);
exception_test
(
function
()
{
date
.
setTime
();},
"TypeError"
);
exception_test
(
function
()
{
arr
.
test
();},
"TypeError"
);
reportSuccess
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment