summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/next-surfaces.js
blob: e86acabdc3d02c65ac2787952157aaebc731944b (plain)
1
2
3
4
5
6
7
// Test superficial features of the Iterator.prototype.next builtin function.

assertEq(Iterator.prototype.next.length, 0);
var desc = Object.getOwnPropertyDescriptor(Iterator.prototype, "next");
assertEq(desc.configurable, true);
assertEq(desc.enumerable, false);
assertEq(desc.writable, true);