Revert extra commit
authorErik Arvidsson <arv@chromium.org>
Tue, 24 Feb 2015 00:20:52 +0000 (19:20 -0500)
committerErik Arvidsson <arv@chromium.org>
Tue, 24 Feb 2015 00:21:13 +0000 (00:21 +0000)
"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}

src/runtime/runtime-internal.cc

index 802dfd21f582804113b42d12a631cb44e68ef2e7..33234cd19f73b7b582a201a6c9158f349376ca36 100644 (file)
@@ -65,16 +65,6 @@ RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
 }
 
 
-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);