{"json_modified": "2016-03-28T08:41:32.649236", "uuid": "5b6640c1-3823-49ff-aa1a-8a0b415ae0f2", "title": "JSFinalizeOp", "url": "/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFinalizeOp", "tags": ["R\u00e9f\u00e9rence", "Reference", "SpiderMonkey", "JSAPI Reference"], "translations": [], "modified": "2015-01-18T15:09:28", "label": "JSFinalizeOp", "localization_tags": [], "locale": "en-US", "id": 133135, "last_edit": "2015-01-18T15:09:18", "summary": "The JSFinalizeOp is analogous to Java finalizers or C++ destructors. The garbage collector calls this callback for each object it collects. The finalizer's job is to clean up any resources allocated by the instance which wouldn't normally be cleaned up by the garbage collector (private data stored in the object by the application, file handles, etc.)", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Description", "title": "Description"}, {"id": "JSClass_hooks", "title": null}, {"id": "See_Also", "title": "See Also"}], "slug": "Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFinalizeOp", "review_tags": ["technical"]}