diff --git a/src/typedarray.js b/src/typedarray.js index 812da32a96..2da7af0fa3 100644 --- a/src/typedarray.js +++ b/src/typedarray.js @@ -141,9 +141,11 @@ function NAMEConstructByIterable(obj, iterable, iteratorFn) { // of modifications to Object.prototype being observable here. var iterator = %_CallFunction(iterable, iteratorFn); var newIterable = { - __proto__: null, - [symbolIterator]() { return iterator; } + __proto__: null }; + // TODO(littledan): Computed properties don't work yet in nosnap. + // Rephrase when they do. + newIterable[symbolIterator] = function() { return iterator; } for (var value of newIterable) { list.push(value); }