mirror of https://github.com/lukechilds/node.git
Browse Source
Create a new HandleScope before looking up the object context with v8::Object::CreationContext(), else we leak the Local<Context> into the current HandleScope. That's relatively harmless unless the HandleScope is long-lived and MakeCallback() is called a lot. In a scenario like that, we may end up leaking a lot of memory. What is unfortunate about this change is that we're trying hard to eradicate the node_isolate global. Longer term, we will probably have to change the MakeCallback() prototype to one that requires an explicit v8::Isolate* argument.v0.11.12-release
Ben Noordhuis
11 years ago
committed by
Timothy J Fontaine
1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue