mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 05:55:36 +02:00
TypedArray and Async Iteration bug fixes
This commit is contained in:
parent
3af53b8087
commit
2576b60364
@ -12,7 +12,6 @@ info: |
|
|||||||
...
|
...
|
||||||
18. Return promiseCapability.[[Promise]].
|
18. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
flags: [async]
|
|
||||||
features: [async-iteration]
|
features: [async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -60,4 +60,5 @@ iter.next().then(function (result) {
|
|||||||
}).then($DONE, $DONE);
|
}).then($DONE, $DONE);
|
||||||
}
|
}
|
||||||
).catch($DONE);
|
).catch($DONE);
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
}).catch($DONE);
|
||||||
|
@ -62,4 +62,4 @@ iter.next().then(function (result) {
|
|||||||
}).then($DONE, $DONE);
|
}).then($DONE, $DONE);
|
||||||
}
|
}
|
||||||
).catch($DONE);
|
).catch($DONE);
|
||||||
}).then($DONE, $DONE);
|
}).catch($DONE);
|
||||||
|
@ -22,6 +22,12 @@ features: [TypedArray]
|
|||||||
var buffer = new ArrayBuffer(1);
|
var buffer = new ArrayBuffer(1);
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
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() {
|
assert.throws(RangeError, function() {
|
||||||
new TA(buffer);
|
new TA(buffer);
|
||||||
});
|
});
|
||||||
|
@ -21,6 +21,12 @@ features: [TypedArray]
|
|||||||
var buffer = new ArrayBuffer(8);
|
var buffer = new ArrayBuffer(8);
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
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() {
|
assert.throws(RangeError, function() {
|
||||||
new TA(buffer, 7);
|
new TA(buffer, 7);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user