TypedArray and Async Iteration bug fixes

This commit is contained in:
Valerie R Young 2018-03-08 18:23:27 -05:00
parent 3af53b8087
commit 2576b60364
5 changed files with 15 additions and 3 deletions

View File

@ -12,7 +12,6 @@ info: |
...
18. Return promiseCapability.[[Promise]].
flags: [async]
features: [async-iteration]
---*/

View File

@ -60,4 +60,5 @@ iter.next().then(function (result) {
}).then($DONE, $DONE);
}
).catch($DONE);
}).then($DONE, $DONE);
}).catch($DONE);

View File

@ -62,4 +62,4 @@ iter.next().then(function (result) {
}).then($DONE, $DONE);
}
).catch($DONE);
}).then($DONE, $DONE);
}).catch($DONE);

View File

@ -22,6 +22,12 @@ features: [TypedArray]
var buffer = new ArrayBuffer(1);
testWithTypedArrayConstructors(function(TA) {
// Exclude 8 bit buffers from this tests, as their elementSize = 1
if ( TA.name.indexOf("8") > -1 ) {
return;
}
assert.throws(RangeError, function() {
new TA(buffer);
});

View File

@ -21,6 +21,12 @@ features: [TypedArray]
var buffer = new ArrayBuffer(8);
testWithTypedArrayConstructors(function(TA) {
// Exclude 8 bit buffers from this tests, as their elementSize = 1
if ( TA.name.indexOf("8") > -1 ) {
return;
}
assert.throws(RangeError, function() {
new TA(buffer, 7);
});