Is it addon must put one parameter at least?
まだ誰も着手していません。
評価
調査の方向性
No file or test is named. Start by reproducing the difference between getFilesSnap() and getFilesSnap(0) in the addon example, then inspect the shown FunctionTemplate registration and related Node.js addon examples. Done means determining whether zero-argument calls are supported and documenting or correcting the example based on that finding.
索引モデルが issue の本文から書いたものです。
説明
Hi,
I got this error when I passed none paramter in my addon function:
#
# Fatal error in , line 0
# Check failed: receiver.IsJSFunction().
#
#
#
#FailureMessage Object: 0000008C4ABCEC60
1: 00007FF66745D1EF napi_wrap+113103
2: 00007FF66739334F v8::internal::wasm::JSToWasmWrapperCompilationUnit::~JSToWasmWrapperCompilationUnit+258639
3: 00007FF667DD8E64 V8_Fatal+212
4: 00007FF6679725D8 v8::internal::JSReceiver::GetCreationContext+360
5: 00007FF667BFED00 v8::Object::CreationContext+32
6: 00007FF66747D6C8 node::MakeCallback+40
7: 00007FF9B44651BF Nan::AsyncResource::runInAsyncScope+175 [E:\code\nodejs\civet\caxios\node_modules\nan\nan.h]:L612
8: 00007FF9B4465719 Nan::Callback::Call_+153 [E:\code\nodejs\civet\caxios\node_modules\nan\nan.h]:L1806
...
But if I put one parameter it was work.
await getFilesSnap() // not work
await getFilesSnap(0) // word
My C++ code like this:
exports->Set(context,
String::NewFromUtf8(isolate, getFilesSnap, v8::NewStringType::kNormal)
.ToLocalChecked(),
v8::FunctionTemplate::New(isolate, getFilesSnap, external)
->GetFunction(context).ToLocalChecked()).FromJust();
I google none of infomation about how to pass none parameter in my function. If you have any link, please tell me.
Thank you.
- 主要言語
- C++
- スター
- 2.6k
- フォーク
- 602
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/node-addon-examples のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
nodejs/node-addon-examples#585 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
nodejs/node-addon-examples#530 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nodejs/node-addon-examples#445 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 32/100
nodejs/node-addon-examples#444 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
nodejs/node-addon-examples#381 ·
nodejs/node-addon-examples の issue をすべて見る
似ている issue
-
Website Doc Typo オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
autowarefoundation/autoware_universe#13413 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
automated-analysis bug memory-safety
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100