Commit 58fe6e73 authored by yangguo's avatar yangguo Committed by Commit bot

Clear cached line ends array when serializing script object.

R=jochen@chromium.org

Review URL: https://codereview.chromium.org/790433002

Cr-Commit-Position: refs/heads/master@{#25703}
parent 7a21cf2f
......@@ -1747,6 +1747,12 @@ void Serializer::ObjectSerializer::Serialize() {
PrintF("\n");
}
if (object_->IsScript()) {
// Clear cached line ends.
Object* undefined = serializer_->isolate()->heap()->undefined_value();
Script::cast(object_)->set_line_ends(undefined);
}
if (object_->IsExternalString()) {
Heap* heap = serializer_->isolate()->heap();
if (object_->map() != heap->native_source_string_map()) {
......
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