"for-of should throw if result object is not an object"
The CQ committed the CL twice
This reverts commit
ab2591ed9332086581ee25ef735cd1b3bbd7e2f0.
BUG=None
TBR=adamk
Review URL: https://codereview.chromium.org/
951133002
Cr-Commit-Position: refs/heads/master@{#26807}
}
-RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
- HandleScope scope(isolate);
- DCHECK(args.length() == 1);
- CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
- THROW_NEW_ERROR_RETURN_FAILURE(
- isolate,
- NewTypeError("iterator_result_not_an_object", HandleVector(&value, 1)));
-}
-
-
RUNTIME_FUNCTION(Runtime_PromiseRejectEvent) {
DCHECK(args.length() == 3);
HandleScope scope(isolate);