| Index: src/typedarray.js
|
| diff --git a/src/typedarray.js b/src/typedarray.js
|
| index 7bd16f670b4425b88319676a52374c480b5b2477..da12ccf32374dfd42c9d5331b5f69ab8fa0295a0 100644
|
| --- a/src/typedarray.js
|
| +++ b/src/typedarray.js
|
| @@ -76,9 +76,11 @@ function CreateTypedArrayConstructor(name, elementSize, arrayId, constructor) {
|
|
|
| function ConstructByArrayLike(obj, arrayLike) {
|
| var length = arrayLike.length;
|
| - var l = ToPositiveInteger(length, "invalid_typed_array_length");
|
| + var l = ToPositiveInteger(length, "invalid_typed_array_length");
|
| if(!%TypedArrayInitializeFromArrayLike(obj, arrayId, arrayLike, l)) {
|
| for (var i = 0; i < l; i++) {
|
| + // It is crucial that we let any execptions from arrayLike[i]
|
| + // propagate outside the function.
|
| obj[i] = arrayLike[i];
|
| }
|
| }
|
|
|