Commit 55162d70 authored by Jan de Mooij's avatar Jan de Mooij
Browse files

Bug 1083482 part 2 - Fix/remove shell tests that used legacy generators. r=arai

parent b4503bfe
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1153,13 +1153,6 @@ function test_syntax(postfixes, check_error, ignore_opts) {
  test("(function () 1 ");
  test("(function () 1); ");

  // Legacy generator

  test("function f() { (yield ");
  test("function f() { (yield 1 ");
  test("function f() { f(yield ");
  test("function f() { f(yield 1 ");

  // for each...in

  enableForEach();
+1 −1
Original line number Diff line number Diff line
if (!this.hasOwnProperty("TypedObject"))
    quit();

Array.prototype[Symbol.iterator] = function() {
Array.prototype[Symbol.iterator] = function*() {
    for (var i = 3; --i >= 0;) {
        yield this[i]
    }
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
if (!this.hasOwnProperty("TypedObject"))
  throw new RangeError();

function eval() {
function* eval() {
    yield(undefined)
}
new TypedObject.StructType();
+1 −1
Original line number Diff line number Diff line

for (x in (function() {
for (x in (function*() {
    eval("arguments[0]");
    yield;
})())(function() {})
+1 −1
Original line number Diff line number Diff line
function a(b=3) {
function* a(b=3) {
    yield
}
a()
Loading