зеркало из https://github.com/mozilla/gecko-dev.git
Fix some failing tests for bug 918828. no_r=me, testonly, a=RyanVM on a CLOSED TREE.
--HG-- extra : rebase_source : 68ce3c64b1a2c8eaf1f26d7f4b4914753a49572f
This commit is contained in:
Родитель
dde25d3a98
Коммит
9d6da099dc
|
@ -110,7 +110,7 @@ check("o[- (o)]");
|
|||
// A few one off tests
|
||||
check_one("6", (function () { 6() }), " is not a function");
|
||||
check_one("Array.prototype.reverse.call(...)", (function () { Array.prototype.reverse.call('123'); }), " is read-only");
|
||||
var ITERATOR = JS_HAS_SYMBOLS ? "(intermediate value)" : "'@@iterator'";
|
||||
var ITERATOR = JS_HAS_SYMBOLS ? "Symbol.iterator" : "'@@iterator'";
|
||||
check_one(`(intermediate value)[${ITERATOR}](...).next(...).value`,
|
||||
function () { var [{ x }] = [null, {}]; }, " is null");
|
||||
check_one(`(intermediate value)[${ITERATOR}](...).next(...).value`,
|
||||
|
|
|
@ -26,7 +26,7 @@ function test()
|
|||
var [a, b, [c0, c1]] = [x, x, x];
|
||||
}
|
||||
|
||||
var ITERATOR = JS_HAS_SYMBOLS ? "(intermediate value)" : "'@@iterator'";
|
||||
var ITERATOR = JS_HAS_SYMBOLS ? "Symbol.iterator" : "'@@iterator'";
|
||||
expect = `TypeError: (intermediate value)[${ITERATOR}](...).next(...).value is null`;
|
||||
actual = 'No Error';
|
||||
try
|
||||
|
|
Загрузка…
Ссылка в новой задаче