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
b1773131
Commit
b1773131
authored
May 25, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added RegExp.global getter implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
81cb13af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
jsregexp.c
dlls/jscript/jsregexp.c
+4
-2
regexp.js
dlls/jscript/tests/regexp.js
+5
-0
No files found.
dlls/jscript/jsregexp.c
View file @
b1773131
...
...
@@ -264,8 +264,10 @@ static HRESULT RegExp_set_source(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t va
static
HRESULT
RegExp_get_global
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
*
r
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
TRACE
(
"
\n
"
);
*
r
=
jsval_bool
(
!!
(
regexp_from_jsdisp
(
jsthis
)
->
jsregexp
->
flags
&
REG_GLOB
));
return
S_OK
;
}
static
HRESULT
RegExp_set_global
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
value
)
...
...
dlls/jscript/tests/regexp.js
View file @
b1773131
...
...
@@ -663,13 +663,18 @@ ok(/abc/.toString(1, false, "3") === "/abc/", "/abc/.toString(1, false, \"3\") =
re
=
/x/
;
ok
(
re
.
ignoreCase
===
false
,
"re.ignoreCase = "
+
re
.
ignoreCase
);
ok
(
re
.
multiline
===
false
,
"re.multiline = "
+
re
.
multiline
);
ok
(
re
.
global
===
false
,
"re.global = "
+
re
.
global
);
re
=
/x/i
;
ok
(
re
.
ignoreCase
===
true
,
"re.ignoreCase = "
+
re
.
ignoreCase
);
ok
(
re
.
multiline
===
false
,
"re.multiline = "
+
re
.
multiline
);
ok
(
re
.
global
===
false
,
"re.global = "
+
re
.
global
);
re
=
new
RegExp
(
"xxx"
,
"gi"
);
ok
(
re
.
ignoreCase
===
true
,
"re.ignoreCase = "
+
re
.
ignoreCase
);
ok
(
re
.
multiline
===
false
,
"re.multiline = "
+
re
.
multiline
);
ok
(
re
.
global
===
true
,
"re.global = "
+
re
.
global
);
re
=
/x/mg
;
ok
(
re
.
ignoreCase
===
false
,
"re.ignoreCase = "
+
re
.
ignoreCase
);
ok
(
re
.
multiline
===
true
,
"re.multiline = "
+
re
.
multiline
);
ok
(
re
.
global
===
true
,
"re.global = "
+
re
.
global
);
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