Backed out changeset b4c531b04559 (bug 1640475) for SM bustages on bug1640475.js. CLOSED TREE

This commit is contained in:
Razvan Maries 2020-05-27 22:45:38 +03:00
parent 13e0b9c0b5
commit 1e190c341b
2 changed files with 0 additions and 8 deletions

View File

@ -1,7 +0,0 @@
var i = 0;
oomTest(function() {
for (var j = 0; j < 10; ++j) {
var r = RegExp(`(?<_${(i++).toString(32)}>a)`);
r.exec("a");
}
});

View File

@ -1179,7 +1179,6 @@ bool RegExpShared::initializeNamedCaptures(JSContext* cx, HandleRegExpShared re,
uint32_t arraySize = numNamedCaptures * sizeof(uint32_t);
uint32_t* captureIndices = static_cast<uint32_t*>(js_malloc(arraySize));
if (!captureIndices) {
js::ReportOutOfMemory(cx);
return false;
}