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:
yulia 2020-03-19 06:38:46 +00:00
Родитель f8e37d2100
Коммит c986d477e1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);