From f58eb8f5dbe5e530f1e37fc6978fdf853be81706 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Wed, 22 May 2013 16:09:06 -0700 Subject: [PATCH] src: remove unused comment Now that Context::New(Isolate*) returns Local, the removed comment is no longer applicable that there is a Persistent which will need to be disposed. --- src/node_script.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/node_script.cc b/src/node_script.cc index 65561ae4828..9c83c39a580 100644 --- a/src/node_script.cc +++ b/src/node_script.cc @@ -382,10 +382,6 @@ Handle WrappedScript::EvalMachine(const Arguments& args) { Local keys; if (context_flag == newContext) { // Create the new context - // Context::New returns a Persistent, but we only need it for this - // function. Here we grab a temporary handle to the new context, assign it - // to a local handle, and then dispose the persistent handle. This ensures - // that when this function exits the context will be disposed. context = Context::New(node_isolate); } else if (context_flag == userContext) {