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

Unified Diff: src/ast-value-factory.h

Issue 1139603005: [destructuring] Implement BindingArrayPattern (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased + feedback Created 5 years, 7 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/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-value-factory.h
diff --git a/src/ast-value-factory.h b/src/ast-value-factory.h
index 97976118100f3f9031727f1854da880464fae0dd..19a13ceacc9dcfe9251a249ac82f0c68b376ff0e 100644
--- a/src/ast-value-factory.h
+++ b/src/ast-value-factory.h
@@ -169,6 +169,8 @@ class AstValue : public ZoneObject {
bool BooleanValue() const;
+ bool IsTheHole() const { return type_ == THE_HOLE; }
+
void Internalize(Isolate* isolate);
// Can be called after Internalize has been called.
« no previous file with comments | « no previous file | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698