Commit 605e92f1 authored by Jan de Mooij's avatar Jan de Mooij
Browse files

Bug 1083482 part 3 - Fix browser_webconsole_bug_632347_iterators_generators.js...

Bug 1083482 part 3 - Fix browser_webconsole_bug_632347_iterators_generators.js to not use legacy generators. r=arai
parent 55162d70
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,11 +29,11 @@ function consoleOpened(HUD) {
  let container = win._container;

  // Make sure autocomplete does not walk through generators.
  let result = container.gen1.next();
  let result = container.gen1.next().value;
  let completion = JSPropertyProvider(dbgWindow, null, "_container.gen1.");
  isnot(completion.matches.length, 0, "Got matches for gen1");

  is(result + 1, container.gen1.next(), "gen1.next() did not execute");
  is(result + 1, container.gen1.next().value, "gen1.next() did not execute");

  result = container.gen2.next().value;

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
         http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="application/javascript;version=1.8">
(function(){
function genFunc() {
function* genFunc() {
  var a = 5;
  while (a < 10) {
    yield a++;