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
c368ab5b
Commit
c368ab5b
authored
Aug 14, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Inherit Math from Object.
parent
6b8fef87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
math.c
dlls/jscript/math.c
+15
-1
api.js
dlls/jscript/tests/api.js
+1
-0
No files found.
dlls/jscript/math.c
View file @
c368ab5b
...
...
@@ -602,5 +602,19 @@ static const builtin_info_t Math_info = {
HRESULT
create_math
(
script_ctx_t
*
ctx
,
DispatchEx
**
ret
)
{
return
create_dispex
(
ctx
,
&
Math_info
,
NULL
,
ret
);
DispatchEx
*
math
;
HRESULT
hres
;
math
=
heap_alloc_zero
(
sizeof
(
DispatchEx
));
if
(
!
math
)
return
E_OUTOFMEMORY
;
hres
=
init_dispex_from_constr
(
math
,
ctx
,
&
Math_info
,
ctx
->
object_constr
);
if
(
FAILED
(
hres
))
{
heap_free
(
math
);
return
hres
;
}
*
ret
=
math
;
return
S_OK
;
}
dlls/jscript/tests/api.js
View file @
c368ab5b
...
...
@@ -1394,5 +1394,6 @@ testObjectInherit(new Boolean(true), false, true, false);
testObjectInherit
(
new
Array
(),
false
,
false
,
true
);
testObjectInherit
(
new
Error
(),
false
,
true
,
true
);
testObjectInherit
(
testObjectInherit
,
false
,
true
,
true
);
testObjectInherit
(
Math
,
true
,
true
,
true
);
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