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 <fedor@indutny.com>
PR-URL: https://github.com/node-forward/node/pull/58
This commit is contained in:
Ben Noordhuis 2014-11-12 15:29:34 +01:00 committed by Fedor Indutny
parent 28c4520bb7
commit 8ba39b0189
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -3679,7 +3679,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
void DiffieHellman::Initialize(Environment* env, Handle<Object> target) {
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);
static enum PropertyAttribute attributes =
const PropertyAttribute attributes =
static_cast<PropertyAttribute>(v8::ReadOnly | v8::DontDelete);
t->InstanceTemplate()->SetInternalFieldCount(1);