mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 16:04:36 +02:00
Merge pull request #1481 from bocoup/anba-fixes
TypedArray and Async Iteration bug fixes
This commit is contained in:
commit
3854fc38dd
@ -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);
|
||||||
|
@ -38,7 +38,7 @@ var obj = {
|
|||||||
throw thrownError;
|
throw thrownError;
|
||||||
},
|
},
|
||||||
value: 1
|
value: 1
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ var obj = {
|
|||||||
throw thrownError;
|
throw thrownError;
|
||||||
},
|
},
|
||||||
done: false
|
done: false
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,4 +62,4 @@ iter.next().then(function (result) {
|
|||||||
}).then($DONE, $DONE);
|
}).then($DONE, $DONE);
|
||||||
}
|
}
|
||||||
).catch($DONE);
|
).catch($DONE);
|
||||||
}).then($DONE, $DONE);
|
}).catch($DONE);
|
||||||
|
@ -29,7 +29,7 @@ var obj = {
|
|||||||
get throw() {
|
get throw() {
|
||||||
throw thrownError;
|
throw thrownError;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -56,4 +56,3 @@ iter.next().then(function(result) {
|
|||||||
).catch($DONE);
|
).catch($DONE);
|
||||||
|
|
||||||
}).catch($DONE);
|
}).catch($DONE);
|
||||||
|
|
||||||
|
@ -57,5 +57,4 @@ iter.next().then(function(result) {
|
|||||||
}).then($DONE, $DONE);
|
}).then($DONE, $DONE);
|
||||||
}
|
}
|
||||||
).catch($DONE);
|
).catch($DONE);
|
||||||
|
|
||||||
}).catch($DONE);
|
}).catch($DONE);
|
||||||
|
@ -36,7 +36,6 @@ async function* asyncg() {
|
|||||||
var iter = asyncg();
|
var iter = asyncg();
|
||||||
|
|
||||||
iter.next().then(function(result) {
|
iter.next().then(function(result) {
|
||||||
|
|
||||||
iter.throw().then(
|
iter.throw().then(
|
||||||
function (result) {
|
function (result) {
|
||||||
throw new Test262Error("Promise should be rejected, got: " + result.value);
|
throw new Test262Error("Promise should be rejected, got: " + result.value);
|
||||||
@ -52,4 +51,3 @@ iter.next().then(function(result) {
|
|||||||
).catch($DONE);
|
).catch($DONE);
|
||||||
|
|
||||||
}).catch($DONE);
|
}).catch($DONE);
|
||||||
|
|
||||||
|
@ -29,4 +29,4 @@ testWithTypedArrayConstructors(function(TA) {
|
|||||||
assert.throws(RangeError, function() {
|
assert.throws(RangeError, function() {
|
||||||
new TA(buffer, 0, undefined);
|
new TA(buffer, 0, undefined);
|
||||||
});
|
});
|
||||||
});
|
}, [ Float64Array, Float32Array, Int32Array, Int16Array, Uint32Array, Uint16Array ]);
|
||||||
|
@ -24,4 +24,4 @@ testWithTypedArrayConstructors(function(TA) {
|
|||||||
assert.throws(RangeError, function() {
|
assert.throws(RangeError, function() {
|
||||||
new TA(buffer, 7);
|
new TA(buffer, 7);
|
||||||
});
|
});
|
||||||
});
|
}, [ Float64Array, Float32Array, Int32Array, Int16Array, Uint32Array, Uint16Array ]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user