google / google/CodeCity

$.physical.destroy should reparent children

Open
#346 1 comment 0 reactions 0 assignees View on GitHub
core enhancement
Dominant language
JavaScript
Stars
198
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Doing
```JS
var grandparent = Object.create($.physical);
var parent = Object.create(grandparent);
var child = Object.create(parent);
parent.destroy();
```
results in `child{proto}` being `$.garbage`, which will then typically result in it being ejected from it's location, cleaned from `$.pysicals`, and, if it is not otherwise referenced, promptly garbage collected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.