blob: 61a7c0e5357023ced1136beed5458c98e68e7c2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var patchSet = new Set();
function checkSet(str) {
patchSet.has(str);
}
for (var i = 0; i < 20; i++) {
checkSet("s");
}
let re = /x(.*)x/;
let count = 0;
oomTest(() => {
// Create a string that needs to be atomized.
let result = re.exec("xa" + count++ + "ax")[1];
checkSet(result);
})
|