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
ca729836
Commit
ca729836
authored
Aug 17, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed Math's function lengths.
parent
c0fc15b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
17 deletions
+42
-17
math.c
dlls/jscript/math.c
+17
-17
api.js
dlls/jscript/tests/api.js
+25
-0
No files found.
dlls/jscript/math.c
View file @
ca729836
...
...
@@ -571,24 +571,24 @@ static const builtin_prop_t Math_props[] = {
{
PIW
,
Math_PI
,
0
},
{
SQRT1_2W
,
Math_SQRT1_2
,
0
},
{
SQRT2W
,
Math_SQRT2
,
0
},
{
absW
,
Math_abs
,
PROPF_METHOD
},
{
acosW
,
Math_acos
,
PROPF_METHOD
},
{
asinW
,
Math_asin
,
PROPF_METHOD
},
{
atanW
,
Math_atan
,
PROPF_METHOD
},
{
atan2W
,
Math_atan2
,
PROPF_METHOD
},
{
ceilW
,
Math_ceil
,
PROPF_METHOD
},
{
cosW
,
Math_cos
,
PROPF_METHOD
},
{
expW
,
Math_exp
,
PROPF_METHOD
},
{
floorW
,
Math_floor
,
PROPF_METHOD
},
{
logW
,
Math_log
,
PROPF_METHOD
},
{
maxW
,
Math_max
,
PROPF_METHOD
},
{
minW
,
Math_min
,
PROPF_METHOD
},
{
powW
,
Math_pow
,
PROPF_METHOD
},
{
absW
,
Math_abs
,
PROPF_METHOD
|
1
},
{
acosW
,
Math_acos
,
PROPF_METHOD
|
1
},
{
asinW
,
Math_asin
,
PROPF_METHOD
|
1
},
{
atanW
,
Math_atan
,
PROPF_METHOD
|
1
},
{
atan2W
,
Math_atan2
,
PROPF_METHOD
|
2
},
{
ceilW
,
Math_ceil
,
PROPF_METHOD
|
1
},
{
cosW
,
Math_cos
,
PROPF_METHOD
|
1
},
{
expW
,
Math_exp
,
PROPF_METHOD
|
1
},
{
floorW
,
Math_floor
,
PROPF_METHOD
|
1
},
{
logW
,
Math_log
,
PROPF_METHOD
|
1
},
{
maxW
,
Math_max
,
PROPF_METHOD
|
2
},
{
minW
,
Math_min
,
PROPF_METHOD
|
2
},
{
powW
,
Math_pow
,
PROPF_METHOD
|
2
},
{
randomW
,
Math_random
,
PROPF_METHOD
},
{
roundW
,
Math_round
,
PROPF_METHOD
},
{
sinW
,
Math_sin
,
PROPF_METHOD
},
{
sqrtW
,
Math_sqrt
,
PROPF_METHOD
},
{
tanW
,
Math_tan
,
PROPF_METHOD
}
{
roundW
,
Math_round
,
PROPF_METHOD
|
1
},
{
sinW
,
Math_sin
,
PROPF_METHOD
|
1
},
{
sqrtW
,
Math_sqrt
,
PROPF_METHOD
|
1
},
{
tanW
,
Math_tan
,
PROPF_METHOD
|
1
}
};
static
const
builtin_info_t
Math_info
=
{
...
...
dlls/jscript/tests/api.js
View file @
ca729836
...
...
@@ -1518,4 +1518,29 @@ testFunctions(Array.prototype, [
[
"unshift"
,
1
]
]);
testFunctions
(
Error
.
prototype
,
[
[
"toString"
,
0
]
]);
testFunctions
(
Math
,
[
[
"abs"
,
1
],
[
"acos"
,
1
],
[
"asin"
,
1
],
[
"atan"
,
1
],
[
"atan2"
,
2
],
[
"ceil"
,
1
],
[
"cos"
,
1
],
[
"exp"
,
1
],
[
"floor"
,
1
],
[
"log"
,
1
],
[
"max"
,
2
],
[
"min"
,
2
],
[
"pow"
,
2
],
[
"random"
,
0
],
[
"round"
,
1
],
[
"sin"
,
1
],
[
"sqrt"
,
1
],
[
"tan"
,
1
]
]);
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