Sign in
cobalt
/
cobalt
/
da5c4f09a295755b8923113581bebdc12153e6dd
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testStaticsInRegExp.js
blob: 16d8698744ef191c82a23db952cf05ab3cbe172a [
file
] [
log
] [
blame
]
'abcdef'
.
replace
(
/a(\w+)c/
,
function
()
{
assertEq
(
RegExp
.
lastMatch
,
'abc'
);
'123456'
.
replace
(
/1(\d+)3/
,
function
()
{
assertEq
(
RegExp
.
lastMatch
,
'123'
);
});
assertEq
(
RegExp
.
lastMatch
,
'123'
);
});
assertEq
(
RegExp
.
lastMatch
,
'123'
);