summaryrefslogtreecommitdiff
path: root/src/node_buffer.cc
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-04-12 16:03:47 -0700
committerisaacs <i@izs.me>2012-04-17 13:14:54 -0700
commita26bee8fa16bcbdaafdee516288c6f59a43376f5 (patch)
tree33bdf31ce9891151c4d77ef785b86efb843b3d9e /src/node_buffer.cc
parentdb45b2ca02dc23278a477625a8698ce136eb8807 (diff)
downloadnodejs-a26bee8fa16bcbdaafdee516288c6f59a43376f5.tar.gz
nodejs-a26bee8fa16bcbdaafdee516288c6f59a43376f5.tar.bz2
nodejs-a26bee8fa16bcbdaafdee516288c6f59a43376f5.zip
MakeCallback: Consistent symbol usage
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r--src/node_buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index 7253662d6..35ddde531 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -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);