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:
parent
28c4520bb7
commit
8ba39b0189
@ -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());
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user