Merge pull request #1481 from bocoup/anba-fixes

TypedArray and Async Iteration bug fixes
This commit is contained in:
Leo Balter 2018-03-09 10:39:34 -05:00 committed by GitHub
commit 3854fc38dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 48 additions and 52 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

@ -38,7 +38,7 @@ var obj = {
throw thrownError;
},
value: 1
}
};
}
};
}

View File

@ -38,7 +38,7 @@ var obj = {
throw thrownError;
},
done: false
}
};
}
}
}

View File

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

View File

@ -29,7 +29,7 @@ var obj = {
get throw() {
throw thrownError;
}
}
};
}
};
@ -56,4 +56,3 @@ iter.next().then(function(result) {
).catch($DONE);
}).catch($DONE);

View File

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

View File

@ -36,7 +36,6 @@ async function* asyncg() {
var iter = asyncg();
iter.next().then(function(result) {
iter.throw().then(
function (result) {
throw new Test262Error("Promise should be rejected, got: " + result.value);
@ -52,4 +51,3 @@ iter.next().then(function(result) {
).catch($DONE);
}).catch($DONE);

View File

@ -29,4 +29,4 @@ testWithTypedArrayConstructors(function(TA) {
assert.throws(RangeError, function() {
new TA(buffer, 0, undefined);
});
});
}, [ Float64Array, Float32Array, Int32Array, Int16Array, Uint32Array, Uint16Array ]);

View File

@ -24,4 +24,4 @@ testWithTypedArrayConstructors(function(TA) {
assert.throws(RangeError, function() {
new TA(buffer, 7);
});
});
}, [ Float64Array, Float32Array, Int32Array, Int16Array, Uint32Array, Uint16Array ]);