Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: src/ast.h

Issue 929733003: for-of should throw if result object is not an object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add strings and move runtime function Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ast-value-factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index faccb90457675627e553b42291f40c75b26b9dce..9b86d0b51292f6291b734962af0f8912e8218f4d 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -942,12 +942,12 @@ class ForOfStatement FINAL : public ForEachStatement {
return subject();
}
- // var iterator = subject[Symbol.iterator]();
+ // iterator = subject[Symbol.iterator]()
Expression* assign_iterator() const {
return assign_iterator_;
}
- // var result = iterator.next();
+ // result = iterator.next() // with type check
Expression* next_result() const {
return next_result_;
}
« no previous file with comments | « no previous file | src/ast-value-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698