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
27747d3a
Commit
27747d3a
authored
Jul 16, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Properly set Error object's constructor property.
parent
bf7b7272
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
error.c
dlls/jscript/error.c
+1
-1
lang.js
dlls/jscript/tests/lang.js
+8
-0
No files found.
dlls/jscript/error.c
View file @
27747d3a
...
...
@@ -370,7 +370,7 @@ HRESULT init_error_constr(script_ctx_t *ctx, jsdisp_t *object_prototype)
hres
=
jsdisp_propput_name
(
err
,
nameW
,
&
v
,
NULL
/*FIXME*/
);
if
(
SUCCEEDED
(
hres
))
hres
=
create_builtin_
function
(
ctx
,
constr_val
[
i
],
names
[
i
],
NULL
,
hres
=
create_builtin_
constructor
(
ctx
,
constr_val
[
i
],
names
[
i
],
NULL
,
PROPF_CONSTR
|
1
,
err
,
constr_addr
[
i
]);
jsdisp_release
(
err
);
...
...
dlls/jscript/tests/lang.js
View file @
27747d3a
...
...
@@ -104,6 +104,14 @@ testConstructor(RegExp, "RegExp");
testConstructor
(
Function
,
"Function"
);
testConstructor
(
Date
,
"Date"
);
testConstructor
(
VBArray
,
"VBArray"
);
testConstructor
(
Error
,
"Error"
);
testConstructor
(
EvalError
,
"EvalError"
);
testConstructor
(
RangeError
,
"RangeError"
);
testConstructor
(
ReferenceError
,
"ReferenceError"
);
//testConstructor(RegExpError, "RegExpError");
testConstructor
(
SyntaxError
,
"SyntaxError"
);
testConstructor
(
TypeError
,
"TypeError"
);
testConstructor
(
URIError
,
"URIError"
);
Function
.
prototype
.
test
=
true
;
ok
(
testFunc1
.
test
===
true
,
"testFunc1.test !== true"
);
...
...
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