| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 47c0071 commit 1a85710
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ void ConvenientHunk::InitializeComponent(Local<v8::Object> target, nodegit::Cont | |||
| 39 | 39 | Local<External> nodegitExternal = Nan::New<External>(nodegitContext); | |
| 40 | 40 | Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(JSNewFunction, nodegitExternal); | |
| 41 | 41 | ||
| 42 | - tpl->InstanceTemplate()->SetInternalFieldCount(1); | ||
| 42 | + tpl->InstanceTemplate()->SetInternalFieldCount(2); | ||
| 43 | 43 | tpl->SetClassName(Nan::New("ConvenientHunk").ToLocalChecked()); | |
| 44 | 44 | ||
| 45 | 45 | Nan::SetPrototypeMethod(tpl, "size", Size, nodegitExternal); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,7 +136,7 @@ void ConvenientPatch::InitializeComponent(Local<v8::Object> target, nodegit::Con | |||
| 136 | 136 | Local<External> nodegitExternal = Nan::New<External>(nodegitContext); | |
| 137 | 137 | Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(JSNewFunction, nodegitExternal); | |
| 138 | 138 | ||
| 139 | - tpl->InstanceTemplate()->SetInternalFieldCount(1); | ||
| 139 | + tpl->InstanceTemplate()->SetInternalFieldCount(2); | ||
| 140 | 140 | tpl->SetClassName(Nan::New("ConvenientPatch").ToLocalChecked()); | |
| 141 | 141 | ||
| 142 | 142 | Nan::SetPrototypeMethod(tpl, "hunks", Hunks, nodegitExternal); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ void PromiseCompletion::InitializeComponent(nodegit::Context *nodegitContext) { | |||
| 6 | 6 | Nan::HandleScope scope; | |
| 7 | 7 | v8::Local<v8::Value> nodegitExternal = Nan::New<v8::External>(nodegitContext); | |
| 8 | 8 | v8::Local<v8::FunctionTemplate> newTemplate = Nan::New<v8::FunctionTemplate>(New, nodegitExternal); | |
| 9 | - newTemplate->InstanceTemplate()->SetInternalFieldCount(1); | ||
| 9 | + newTemplate->InstanceTemplate()->SetInternalFieldCount(2); | ||
| 10 | 10 | ||
| 11 | 11 | nodegitContext->SaveToPersistent( | |
| 12 | 12 | "PromiseCompletion::Template", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ void Wrapper::InitializeComponent(Local<v8::Object> target, nodegit::Context *no | |||
| 22 | 22 | Local<External> nodegitExternal = Nan::New<External>(nodegitContext); | |
| 23 | 23 | Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(JSNewFunction, nodegitExternal); | |
| 24 | 24 | ||
| 25 | - tpl->InstanceTemplate()->SetInternalFieldCount(1); | ||
| 25 | + tpl->InstanceTemplate()->SetInternalFieldCount(2); | ||
| 26 | 26 | tpl->SetClassName(Nan::New("Wrapper").ToLocalChecked()); | |
| 27 | 27 | ||
| 28 | 28 | Nan::SetPrototypeMethod(tpl, "toBuffer", ToBuffer, nodegitExternal); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,7 @@ using namespace node; | |||
| 48 | 48 | v8::Local<v8::External> nodegitExternal = Nan::New<v8::External>(nodegitContext); | |
| 49 | 49 | v8::Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(JSNewFunction, nodegitExternal); | |
| 50 | 50 | ||
| 51 | - tpl->InstanceTemplate()->SetInternalFieldCount(1); | ||
| 51 | + tpl->InstanceTemplate()->SetInternalFieldCount(2); | ||
| 52 | 52 | tpl->SetClassName(Nan::New("{{ jsClassName }}").ToLocalChecked()); | |
| 53 | 53 | ||
| 54 | 54 | {% each functions as function %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ using namespace std; | |||
| 89 | 89 | Local<External> nodegitExternal = Nan::New<External>(nodegitContext); | |
| 90 | 90 | Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(JSNewFunction, nodegitExternal); | |
| 91 | 91 | ||
| 92 | - tpl->InstanceTemplate()->SetInternalFieldCount(1); | ||
| 92 | + tpl->InstanceTemplate()->SetInternalFieldCount(2); | ||
| 93 | 93 | tpl->SetClassName(Nan::New("{{ jsClassName }}").ToLocalChecked()); | |
| 94 | 94 | ||
| 95 | 95 | {% each fields as field %} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments