From: Ben Noordhuis Date: Wed, 12 Nov 2014 14:29:34 +0000 (+0100) Subject: src: turn two global vars into local vars X-Git-Tag: v1.0.0~273 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ba39b01899fd51554fbfb5c906e88adf5b0035c;p=platform%2Fupstream%2Fnodejs.git src: turn two global vars into local vars Bring us a little closer to multi-isolate readiness by removing two global variables. Reviewed-By: Fedor Indutny PR-URL: https://github.com/node-forward/node/pull/58 --- diff --git a/src/node.cc b/src/node.cc index 7b4f986..73bc45c 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1378,7 +1378,7 @@ void AppendExceptionLine(Environment* env, err_obj->SetHiddenValue(env->processed_string(), True(env->isolate())); } - static char arrow[1024]; + char arrow[1024]; // Print (filename):(line number): (message). node::Utf8Value filename(message->GetScriptResourceName()); diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b119082..bbc2b95 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3679,7 +3679,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo& args) { void DiffieHellman::Initialize(Environment* env, Handle target) { Local t = env->NewFunctionTemplate(New); - static enum PropertyAttribute attributes = + const PropertyAttribute attributes = static_cast(v8::ReadOnly | v8::DontDelete); t->InstanceTemplate()->SetInternalFieldCount(1);