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
1f134b41
Commit
1f134b41
authored
Sep 21, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added String default value implementation.
parent
3925f130
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
string.c
dlls/jscript/string.c
+20
-2
api.js
dlls/jscript/tests/api.js
+3
-0
No files found.
dlls/jscript/string.c
View file @
1f134b41
...
...
@@ -638,8 +638,26 @@ static HRESULT String_isPrototypeOf(DispatchEx *dispex, LCID lcid, WORD flags, D
static
HRESULT
String_value
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
StringInstance
*
This
=
(
StringInstance
*
)
dispex
;
TRACE
(
"
\n
"
);
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
:
{
BSTR
str
=
SysAllocString
(
This
->
str
);
if
(
!
str
)
return
E_OUTOFMEMORY
;
V_VT
(
retv
)
=
VT_BSTR
;
V_BSTR
(
retv
)
=
str
;
break
;
}
default:
FIXME
(
"flags %x
\n
"
,
flags
);
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
void
String_destructor
(
DispatchEx
*
dispex
)
...
...
dlls/jscript/tests/api.js
View file @
1f134b41
...
...
@@ -66,6 +66,9 @@ ok(str.toString() === "", "str.toString() = " + str.toString());
var
str
=
new
String
(
"test"
,
"abc"
);
ok
(
str
.
toString
()
===
"test"
,
"str.toString() = "
+
str
.
toString
());
tmp
=
"value "
+
str
;
ok
(
tmp
===
"value test"
,
"'value ' + str = "
+
tmp
);
tmp
=
"abc"
.
charAt
(
0
);
ok
(
tmp
===
"a"
,
"'abc',charAt(0) = "
+
tmp
);
tmp
=
"abc"
.
charAt
(
1
);
...
...
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