Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 "abcdefg".match(/(x)y(z)/g);
2 assertEq(RegExp.$1, "");
4 assertEq("abcdef".match(/a(b)cd/g)[0], "abcd");
5 assertEq(RegExp.$1, "b");
6 assertEq(RegExp.$2, "");
8 "abcdef".match(/(a)b(c)/g);
9 assertEq(RegExp.$1, "a");
10 assertEq(RegExp.$2, "c");
11 assertEq(RegExp.$3, "");
13 "abcabdabe".match(/(a)b(.)/g);
14 assertEq(RegExp.$1, "a");
15 assertEq(RegExp.$2, "e");
17 "abcdefg".match(/(x)y(z)/g);
18 assertEq(RegExp.$1, "a"); //If there's no match, we don't update the statics.
20 "abcdefg".match(/(g)/g);
21 assertEq(RegExp.$1, "g");