mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
MakeCallback: Consistent symbol usage
This commit is contained in:
1 parent
db45b2ca02
commit
a26bee8fa1
15 files changed
+93
-38
No files matched your search
+2
-2
@@ -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