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
36fe9472
Commit
36fe9472
authored
Dec 27, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added ScriptEngine() implementation.
parent
bfc8832c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
global.c
dlls/jscript/global.c
+16
-2
api.js
dlls/jscript/tests/api.js
+3
-0
No files found.
dlls/jscript/global.c
View file @
36fe9472
...
...
@@ -706,8 +706,22 @@ static HRESULT JSGlobal_GetObject(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags
static
HRESULT
JSGlobal_ScriptEngine
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
static
const
WCHAR
JScriptW
[]
=
{
'J'
,
'S'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
0
};
TRACE
(
"
\n
"
);
if
(
retv
)
{
BSTR
ret
;
ret
=
SysAllocString
(
JScriptW
);
if
(
!
ret
)
return
E_OUTOFMEMORY
;
V_VT
(
retv
)
=
VT_BSTR
;
V_BSTR
(
retv
)
=
ret
;
}
return
S_OK
;
}
static
HRESULT
JSGlobal_ScriptEngineMajorVersion
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
dlls/jscript/tests/api.js
View file @
36fe9472
...
...
@@ -18,6 +18,9 @@
var
tmp
,
i
;
ok
(
ScriptEngine
()
===
"JScript"
,
"ScriptEngine() = "
+
ScriptEngine
());
ok
(
ScriptEngine
(
3
)
===
"JScript"
,
"ScriptEngine(3) = "
+
ScriptEngine
(
3
));
i
=
parseInt
(
"0"
);
ok
(
i
===
0
,
"parseInt('0') = "
+
i
);
i
=
parseInt
(
"123"
);
...
...
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