Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index f1a51ce4908a3f18fc98448a8fef4992616ce87d..d582d858755bd5523a10b7da3acdec5216704347 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -1585,8 +1585,18 @@ class VariableProxy final : public Expression { |
friend class AstNodeFactory; |
VariableProxy(Variable* var, int start_position); |
+ |
VariableProxy(const AstRawString* name, VariableKind variable_kind, |
- int start_position); |
+ int start_position) |
+ : Expression(start_position, kVariableProxy), |
+ raw_name_(name), |
+ next_unresolved_(nullptr) { |
+ bit_field_ |= IsThisField::encode(variable_kind == THIS_VARIABLE) | |
+ IsAssignedField::encode(false) | |
+ IsResolvedField::encode(false) | |
+ HoleCheckModeField::encode(HoleCheckMode::kElided); |
+ } |
+ |
explicit VariableProxy(const VariableProxy* copy_from); |
class IsThisField : public BitField<bool, Expression::kNextBitFieldIndex, 1> { |