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

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

Issue 1053773006: [es6] implement default/optional parameters (WIP / comments) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
Index: src/ast-value-factory.h
diff --git a/src/ast-value-factory.h b/src/ast-value-factory.h
index cb69579314c63ca5e9b398d294d7a3ddab69eb72..7cdfd538a8aad490199b684c2c8d9a1ae0701550 100644
--- a/src/ast-value-factory.h
+++ b/src/ast-value-factory.h
@@ -171,6 +171,10 @@ class AstValue : public ZoneObject {
void Internalize(Isolate* isolate);
+ bool IsUndefined() const {
+ return type_ == UNDEFINED;
+ }
+
// Can be called after Internalize has been called.
V8_INLINE Handle<Object> value() const {
if (type_ == STRING) {

Powered by Google App Engine
This is Rietveld 408576698