Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c6412d98
Commit
c6412d98
authored
Jul 24, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Add "illegal assignment" error.
parent
2fba39df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
engine.c
dlls/jscript/engine.c
+2
-4
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
+1
-0
No files found.
dlls/jscript/engine.c
View file @
c6412d98
...
...
@@ -232,10 +232,8 @@ static HRESULT disp_get_id(IDispatch *disp, BSTR name, DWORD flags, DISPID *id)
/* ECMA-262 3rd Edition 8.7.2 */
static
HRESULT
put_value
(
script_ctx_t
*
ctx
,
exprval_t
*
ref
,
VARIANT
*
v
,
jsexcept_t
*
ei
)
{
if
(
ref
->
type
!=
EXPRVAL_IDREF
)
{
FIXME
(
"throw ReferemceError
\n
"
);
return
E_FAIL
;
}
if
(
ref
->
type
!=
EXPRVAL_IDREF
)
return
throw_reference_error
(
ctx
,
ei
,
IDS_ILLEGAL_ASSIGN
,
NULL
);
return
disp_propput
(
ref
->
u
.
idref
.
disp
,
ref
->
u
.
idref
.
id
,
ctx
->
lcid
,
v
,
ei
,
NULL
/*FIXME*/
);
}
...
...
dlls/jscript/jscript_En.rc
View file @
c6412d98
...
...
@@ -32,6 +32,7 @@ STRINGTABLE DISCARDABLE
IDS_NOT_FUNC "Function expected"
IDS_NOT_DATE "'[object]' is not a date object"
IDS_NOT_NUM "Number expected"
IDS_ILLEGAL_ASSIGN "Illegal assignment"
IDS_UNDEFINED "'|' is undefined"
IDS_NOT_BOOL "Boolean object expected"
IDS_INVALID_LENGTH "Array length must be a finite positive integer"
...
...
dlls/jscript/resource.h
View file @
c6412d98
...
...
@@ -28,6 +28,7 @@
#define IDS_NOT_FUNC 0x138A
#define IDS_NOT_DATE 0x138E
#define IDS_NOT_NUM 0x1389
#define IDS_ILLEGAL_ASSIGN 0x1390
#define IDS_UNDEFINED 0x1391
#define IDS_NOT_BOOL 0x1392
#define IDS_INVALID_LENGTH 0x13A5
dlls/jscript/tests/api.js
View file @
c6412d98
...
...
@@ -1328,5 +1328,6 @@ exception_test(function() {eval("switch");}, "SyntaxError", -2146827283);
exception_test
(
function
()
{
eval
(
"if(false"
);},
"SyntaxError"
,
-
2146827282
);
exception_test
(
function
()
{
eval
(
"for(i=0; i<10; i++"
);},
"SyntaxError"
,
-
2146827282
);
exception_test
(
function
()
{
eval
(
"while(true"
);},
"SyntaxError"
,
-
2146827282
);
exception_test
(
function
()
{
test
=
function
()
{}},
"ReferenceError"
,
-
2146823280
);
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