Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Unified Diff: runtime/vm/object.cc

Issue 2014913002: Tree-shaker: drop imports/exports in a way that doesn't break the vm-service. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index de74eb4dd2133ee8af70c1bb79a929d7238962bb..0d5ca5f983668e6c7c36c8c1217a7d141046c4cf 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -10245,8 +10245,8 @@ bool Library::ImportsCorelib() const {
void Library::DropDependencies() const {
- StorePointer(&raw_ptr()->imports_, Array::null());
- StorePointer(&raw_ptr()->exports_, Array::null());
+ StorePointer(&raw_ptr()->imports_, Object::empty_array().raw());
+ StorePointer(&raw_ptr()->exports_, Object::empty_array().raw());
}
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698