We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn_name
1 parent 871e4d0 commit b5d8d7cCopy full SHA for b5d8d7c
src/node.h
@@ -293,7 +293,7 @@ inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,
293
v8::FunctionTemplate::New(isolate, callback, v8::Local<v8::Value>(), s);
294
v8::Local<v8::String> fn_name = v8::String::NewFromUtf8(isolate, name);
295
t->SetClassName(fn_name);
296
- recv->PrototypeTemplate()->Set(v8::String::NewFromUtf8(isolate, name), t);
+ recv->PrototypeTemplate()->Set(fn_name, t);
297
}
298
#define NODE_SET_PROTOTYPE_METHOD node::NODE_SET_PROTOTYPE_METHOD
299
0 commit comments