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
06050f86
Commit
06050f86
authored
Dec 11, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Math.LOG10E implementation.
parent
0c6b427a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
math.c
dlls/jscript/math.c
+4
-3
api.js
dlls/jscript/tests/api.js
+5
-0
No files found.
dlls/jscript/math.c
View file @
06050f86
...
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
static
const
WCHAR
EW
[]
=
{
'E'
,
0
};
static
const
WCHAR
LOG2EW
[]
=
{
'L'
,
'O'
,
'G'
,
'2'
,
'E'
,
0
};
static
const
WCHAR
LOG10EW
[]
=
{
'L'
,
'O'
,
'G'
,
'1'
,
'0'
,
0
};
static
const
WCHAR
LOG10EW
[]
=
{
'L'
,
'O'
,
'G'
,
'1'
,
'0'
,
'E'
,
0
};
static
const
WCHAR
LN2W
[]
=
{
'L'
,
'N'
,
'2'
,
0
};
static
const
WCHAR
LN10W
[]
=
{
'L'
,
'N'
,
'1'
,
'0'
,
0
};
static
const
WCHAR
PIW
[]
=
{
'P'
,
'I'
,
0
};
...
...
@@ -85,11 +85,12 @@ static HRESULT Math_LOG2E(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS
return
math_constant
(
M_LOG2E
,
flags
,
retv
);
}
/* ECMA-262 3rd Edition 15.8.1.4 */
static
HRESULT
Math_LOG10E
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXM
E
(
"
\n
"
);
return
E_NOTIMPL
;
TRAC
E
(
"
\n
"
);
return
math_constant
(
M_LOG10E
,
flags
,
retv
)
;
}
static
HRESULT
Math_LN2
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
dlls/jscript/tests/api.js
View file @
06050f86
...
...
@@ -624,4 +624,9 @@ ok(Math.floor(Math.LOG2E*100) === 144, "Math.LOG2E = " + Math.LOG2E);
Math
.
LOG2E
=
"test"
;
ok
(
Math
.
floor
(
Math
.
LOG2E
*
100
)
===
144
,
"modified Math.LOG2E = "
+
Math
.
LOG2E
);
ok
(
typeof
(
Math
.
LOG10E
)
===
"number"
,
"typeof(Math.LOG10E) = "
+
typeof
(
Math
.
LOG10E
));
ok
(
Math
.
floor
(
Math
.
LOG10E
*
100
)
===
43
,
"Math.LOG10E = "
+
Math
.
LOG10E
);
Math
.
LOG10E
=
"test"
;
ok
(
Math
.
floor
(
Math
.
LOG10E
*
100
)
===
43
,
"modified Math.LOG10E = "
+
Math
.
LOG10E
);
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