~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/for-of/next-1.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Iterator.prototype.next throws if applied to a value that isn't an iterator.
 
2
 
 
3
load(libdir + "asserts.js");
 
4
for (var v of [null, undefined, false, 0, "ponies", {}, [], this])
 
5
    assertThrowsInstanceOf(function () { Iterator.prototype.next.call(v); }, TypeError);