summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-11-20 16:09:58 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-20 16:33:46 -0800
commitc4c3a19d85991b3c2703e7b6561d8c1a3fed3543 (patch)
tree93b548f7fa3875ee149455a2d41ecd7027b3e547 /package.json
parent8a0bce780847546c161670420e4d0f1e3a6cbdca (diff)
downloadqtlocation-mapboxgl-c4c3a19d85991b3c2703e7b6561d8c1a3fed3543.tar.gz
[node] Allow GC in spite of reference loops through the request method
The following produces a reference cycle: var map = new mbgl.Map({ request: function () { ... } }); map has a reference to the request function, which has a reference to its closure, which has a reference to map. Storing a the map options in an internal field, rather than a Persistent, allows V8 to collect the reference cycle when none of its members have other references.
Diffstat (limited to 'package.json')
0 files changed, 0 insertions, 0 deletions