File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ void Connection::Initialize(v8::Handle<v8::Object> target) {
112112 #endif
113113
114114 // Getter for connection.readyState
115- constructor_template->PrototypeTemplate ()->SetAccessor (
115+ constructor_template->InstanceTemplate ()->SetAccessor (
116116 ready_state_symbol,
117117 ReadyStateGetter);
118118
119119 // Getter for connection.readyState
120- constructor_template->PrototypeTemplate ()->SetAccessor (
120+ constructor_template->InstanceTemplate ()->SetAccessor (
121121 fd_symbol,
122122 FDGetter);
123123
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Timer::Initialize (Handle<Object> target)
2727 NODE_SET_PROTOTYPE_METHOD (constructor_template, " start" , Timer::Start);
2828 NODE_SET_PROTOTYPE_METHOD (constructor_template, " stop" , Timer::Stop);
2929
30- constructor_template->PrototypeTemplate ()->SetAccessor (repeat_symbol,
30+ constructor_template->InstanceTemplate ()->SetAccessor (repeat_symbol,
3131 RepeatGetter, RepeatSetter);
3232
3333 target->Set (String::NewSymbol (" Timer" ), constructor_template->GetFunction ());
You can’t perform that action at this time.
0 commit comments