зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1760541 - [devtools] Don't reuse longString actors for same string.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D141575
This commit is contained in:
Родитель
9b260c53e3
Коммит
69473c897a
|
@ -118,18 +118,7 @@ function createValueGrip(value, pool, makeObjectGrip) {
|
|||
return value;
|
||||
|
||||
case "string":
|
||||
if (stringIsLong(value)) {
|
||||
for (const child of pool.poolChildren()) {
|
||||
if (child instanceof LongStringActor && child.str == value) {
|
||||
return child.form();
|
||||
}
|
||||
}
|
||||
|
||||
const actor = new LongStringActor(pool.conn, value);
|
||||
pool.manage(actor);
|
||||
return actor.form();
|
||||
}
|
||||
return value;
|
||||
return createStringGrip(pool, value);
|
||||
|
||||
case "number":
|
||||
if (value === Infinity) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче