mirror of https://github.com/tc39/test262.git
TypedArray and Async Iteration bug fixes
This commit is contained in:
parent
3af53b8087
commit
2576b60364
|
@ -12,7 +12,6 @@ info: |
|
|||
...
|
||||
18. Return promiseCapability.[[Promise]].
|
||||
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -60,4 +60,5 @@ iter.next().then(function (result) {
|
|||
}).then($DONE, $DONE);
|
||||
}
|
||||
).catch($DONE);
|
||||
}).then($DONE, $DONE);
|
||||
|
||||
}).catch($DONE);
|
||||
|
|
|
@ -62,4 +62,4 @@ iter.next().then(function (result) {
|
|||
}).then($DONE, $DONE);
|
||||
}
|
||||
).catch($DONE);
|
||||
}).then($DONE, $DONE);
|
||||
}).catch($DONE);
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue