Commit d4341d1f authored by marja's avatar marja Committed by Commit bot

Fix temporary zones: DoExpression should go into local_zone_.

There's no use putting it into parser_zone_, and if we do so, it might
refer to dead memory (the Block is in local_zone_ which might get
discarded).

BUG=

Review-Url: https://codereview.chromium.org/2145293003
Cr-Commit-Position: refs/heads/master@{#37787}
parent ddda77ee
......@@ -3451,7 +3451,7 @@ class AstNodeFactory final BASE_EMBEDDED {
DoExpression* NewDoExpression(Block* block, Variable* result_var, int pos) {
VariableProxy* result = NewVariableProxy(result_var, pos);
return new (parser_zone_) DoExpression(parser_zone_, block, result, pos);
return new (local_zone_) DoExpression(local_zone_, block, result, pos);
}
ThisFunction* NewThisFunction(int pos) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment