mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
MakeCallback: Consistent symbol usage
This commit is contained in:
@@ -741,8 +741,8 @@ void Buffer::Initialize(Handle<Object> target) {
|
||||
assert(unbase64('\n') == -2);
|
||||
assert(unbase64('\r') == -2);
|
||||
|
||||
length_symbol = Persistent<String>::New(String::NewSymbol("length"));
|
||||
chars_written_sym = Persistent<String>::New(String::NewSymbol("_charsWritten"));
|
||||
length_symbol = NODE_PSYMBOL("length");
|
||||
chars_written_sym = NODE_PSYMBOL("_charsWritten");
|
||||
|
||||
Local<FunctionTemplate> t = FunctionTemplate::New(Buffer::New);
|
||||
constructor_template = Persistent<FunctionTemplate>::New(t);
|
||||
|
||||
Reference in New Issue
Block a user