diff options
Diffstat (limited to 'js/src/jit-test/tests/TypedObject/bug1098961.js')
-rw-r--r-- | js/src/jit-test/tests/TypedObject/bug1098961.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/TypedObject/bug1098961.js b/js/src/jit-test/tests/TypedObject/bug1098961.js new file mode 100644 index 000000000..65a59a937 --- /dev/null +++ b/js/src/jit-test/tests/TypedObject/bug1098961.js @@ -0,0 +1,9 @@ +if (!this.hasOwnProperty("TypedObject")) + quit(); + +Array.prototype[Symbol.iterator] = function() { + for (var i = 3; --i >= 0;) { + yield this[i] + } +} +new TypedObject.ArrayType(TypedObject.int32, 0).build(1, x => 1) |