Commit b56c0f7a authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[scope] Null out rare_data_ when aborting preparsing

When we abort preparsing, we have to reset the Scope state, to ensure
re-parsing will leave us in the proper Zone. Resetting of rare_data_
was missing, causing this to fail in some cases.

Bug: chromium:740803
Change-Id: I7ce70f9c4670eaf1b76745ae8231eb95625b0f4b
Reviewed-on: https://chromium-review.googlesource.com/568784Reviewed-by: 's avatarCaitlin Potter <caitp@igalia.com>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46607}
parent 53fa8735
......@@ -1492,6 +1492,7 @@ void DeclarationScope::ResetAfterPreparsing(AstValueFactory* ast_value_factory,
inner_scope_ = nullptr;
unresolved_ = nullptr;
sloppy_block_function_map_ = nullptr;
rare_data_ = nullptr;
if (aborted) {
// Prepare scope for use in the outer zone.
......
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
({
m() {
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x; x;
x;
}
})
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