projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
testStaticsInRegExp.js
1
'abcdef'.replace(/a(\w+)c/, function() {
2
assertEq(RegExp.lastMatch, 'abc');
3
'123456'.replace(/1(\d+)3/, function() {
4
assertEq(RegExp.lastMatch, '123');
5
});
6
assertEq(RegExp.lastMatch, '123');
7
});
8
assertEq(RegExp.lastMatch, 'abc');
9