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
7fcded1f
Commit
7fcded1f
authored
Jul 07, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Inherit Array valueOf from Object.
parent
12760a0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
array.c
dlls/jscript/array.c
+1
-10
global.c
dlls/jscript/global.c
+4
-4
No files found.
dlls/jscript/array.c
View file @
7fcded1f
...
...
@@ -40,7 +40,6 @@ static const WCHAR sortW[] = {'s','o','r','t',0};
static
const
WCHAR
spliceW
[]
=
{
's'
,
'p'
,
'l'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
toStringW
[]
=
{
't'
,
'o'
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
toLocaleStringW
[]
=
{
't'
,
'o'
,
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'e'
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
valueOfW
[]
=
{
'v'
,
'a'
,
'l'
,
'u'
,
'e'
,
'O'
,
'f'
,
0
};
static
const
WCHAR
unshiftW
[]
=
{
'u'
,
'n'
,
's'
,
'h'
,
'i'
,
'f'
,
't'
,
0
};
static
const
WCHAR
hasOwnPropertyW
[]
=
{
'h'
,
'a'
,
's'
,
'O'
,
'w'
,
'n'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
0
};
static
const
WCHAR
propertyIsEnumerableW
[]
=
...
...
@@ -638,13 +637,6 @@ static HRESULT Array_toLocaleString(DispatchEx *dispex, LCID lcid, WORD flags, D
return
E_NOTIMPL
;
}
static
HRESULT
Array_valueOf
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Array_unshift
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
...
...
@@ -732,7 +724,6 @@ static const builtin_prop_t Array_props[] = {
{
toLocaleStringW
,
Array_toLocaleString
,
PROPF_METHOD
},
{
toStringW
,
Array_toString
,
PROPF_METHOD
},
{
unshiftW
,
Array_unshift
,
PROPF_METHOD
},
{
valueOfW
,
Array_valueOf
,
PROPF_METHOD
}
};
static
const
builtin_info_t
Array_info
=
{
...
...
@@ -809,7 +800,7 @@ static HRESULT alloc_array(script_ctx_t *ctx, BOOL use_constr, ArrayInstance **r
if
(
use_constr
)
hres
=
init_dispex_from_constr
(
&
array
->
dispex
,
ctx
,
&
Array_info
,
ctx
->
array_constr
);
else
hres
=
init_dispex
(
&
array
->
dispex
,
ctx
,
&
Array_info
,
NULL
);
hres
=
init_dispex
_from_constr
(
&
array
->
dispex
,
ctx
,
&
Array_info
,
ctx
->
object_constr
);
if
(
FAILED
(
hres
))
{
heap_free
(
array
);
...
...
dlls/jscript/global.c
View file @
7fcded1f
...
...
@@ -582,6 +582,10 @@ static HRESULT init_constructors(script_ctx_t *ctx)
if
(
FAILED
(
hres
))
return
hres
;
hres
=
create_object_constr
(
ctx
,
&
ctx
->
object_constr
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
create_array_constr
(
ctx
,
&
ctx
->
array_constr
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -598,10 +602,6 @@ static HRESULT init_constructors(script_ctx_t *ctx)
if
(
FAILED
(
hres
))
return
hres
;
hres
=
create_object_constr
(
ctx
,
&
ctx
->
object_constr
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
create_regexp_constr
(
ctx
,
&
ctx
->
regexp_constr
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
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