| Index: src/snapshot/startup-serializer.cc
|
| diff --git a/src/snapshot/startup-serializer.cc b/src/snapshot/startup-serializer.cc
|
| index 4b27746f8eefa0cce128468249d2d25f526be12b..263e2e886a2f9d8b074aef7e35f7f552acf6b999 100644
|
| --- a/src/snapshot/startup-serializer.cc
|
| +++ b/src/snapshot/startup-serializer.cc
|
| @@ -73,6 +73,10 @@ void StartupSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code,
|
| Address original_address = Foreign::cast(info->getter())->foreign_address();
|
| Foreign::cast(info->js_getter())->set_foreign_address(original_address);
|
| accessor_infos_.Add(info);
|
| + } else if (obj->IsScript() && Script::cast(obj)->IsUserJavaScript()) {
|
| + // Reset type for user scripts embedded in the start-up snapshot to hide
|
| + // them from the debugger.
|
| + Script::cast(obj)->set_type(Script::TYPE_EXTENSION);
|
| }
|
|
|
| // Object has not yet been serialized. Serialize it here.
|
|
|