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
a0170ad7
Commit
a0170ad7
authored
Sep 09, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Function.length implementation.
parent
99b4bc23
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
function.c
dlls/jscript/function.c
+14
-1
global.c
dlls/jscript/global.c
+1
-1
lang.js
dlls/jscript/tests/lang.js
+2
-0
No files found.
dlls/jscript/function.c
View file @
a0170ad7
...
...
@@ -42,8 +42,21 @@ static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','
static
HRESULT
Function_length
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
FunctionInstance
*
This
=
(
FunctionInstance
*
)
dispex
;
TRACE
(
"%p %d
\n
"
,
This
,
This
->
length
);
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
:
V_VT
(
retv
)
=
VT_I4
;
V_I4
(
retv
)
=
This
->
length
;
break
;
default:
FIXME
(
"unimplemented flags %x
\n
"
,
flags
);
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
HRESULT
Function_toString
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
dlls/jscript/global.c
View file @
a0170ad7
...
...
@@ -256,10 +256,10 @@ static const builtin_prop_t JSGlobal_props[] = {
{
NumberW
,
JSGlobal_Number
,
PROPF_CONSTR
},
{
ObjectW
,
JSGlobal_Object
,
PROPF_CONSTR
},
{
RegExpW
,
JSGlobal_RegExp
,
PROPF_CONSTR
},
{
ScriptEngineW
,
JSGlobal_ScriptEngine
,
PROPF_METHOD
},
{
ScriptEngineBuildVersionW
,
JSGlobal_ScriptEngineBuildVersion
,
PROPF_METHOD
},
{
ScriptEngineMajorVersionW
,
JSGlobal_ScriptEngineMajorVersion
,
PROPF_METHOD
},
{
ScriptEngineMinorVersionW
,
JSGlobal_ScriptEngineMinorVersion
,
PROPF_METHOD
},
{
ScriptEngineW
,
JSGlobal_ScriptEngine
,
PROPF_METHOD
},
{
StringW
,
JSGlobal_String
,
PROPF_CONSTR
},
{
VBArrayW
,
JSGlobal_VBArray
,
PROPF_METHOD
},
{
escapeW
,
JSGlobal_escape
,
PROPF_METHOD
},
...
...
dlls/jscript/tests/lang.js
View file @
a0170ad7
...
...
@@ -38,4 +38,6 @@ ok(null !== undefined, "null !== undefined is false");
var
trueVar
=
true
;
ok
(
trueVar
,
"trueVar is not true"
);
ok
(
ScriptEngine
.
length
===
0
,
"ScriptEngine.length is not 0"
);
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