summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug854124.js
blob: 505ed2dfb670ffb329142968f0cd132bff889952 (plain)
1
2
3
4
5
6
7
8
// Don't assert.
"p".match(/(p)/);
assertEq(RegExp.$1, "p");
assertEq(RegExp.$2, "");

"x\ny\n".replace(/(^\n*)/, "");
assertEq(RegExp.$1, "");
assertEq(RegExp.$2, "");