зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1623349 - remove specifics about error message for opt chain r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D67360 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f8e37d2100
Коммит
c986d477e1
|
@ -219,8 +219,8 @@ shouldBe(({a : {b: () => undefined}}).a.b?.()?.(), undefined);
|
|||
shouldThrowTypeError(() => delete ({a : {b: undefined}}).a?.b.b.c, '(intermediate value).a.b is undefined');
|
||||
shouldBe(delete ({a : {b: undefined}}).a?.["b"]?.["b"], true);
|
||||
shouldThrowTypeError(() => (({a : {b: () => undefined}}).a.b?.())(), 'undefined is not a function');
|
||||
shouldThrowTypeError(() => (delete[1]?.r[delete[1]?.r1]), "can't access property \"true\", [...].r is undefined");
|
||||
shouldThrowTypeError(() => (delete[1]?.r[[1]?.r1]), "can't access property \"undefined\", [...].r is undefined");
|
||||
shouldThrowTypeError(() => (delete[1]?.r[delete[1]?.r1]), "[...].r is undefined");
|
||||
shouldThrowTypeError(() => (delete[1]?.r[[1]?.r1]), "[...].r is undefined");
|
||||
|
||||
if (typeof reportCompare === "function")
|
||||
reportCompare(true, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче