summaryrefslogtreecommitdiff
path: root/doc/api/addons.md
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-07-03 06:27:58 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-08-10 07:24:30 +0200
commit7f81400723f602467e9f611cbef5addb31ced616 (patch)
tree9bdef84825d55e523160e08723d7bedb2c009dd3 /doc/api/addons.md
parenta439cf4354c4781c7ac0026c7f69f7160e8439fb (diff)
downloadandroid-node-v8-7f81400723f602467e9f611cbef5addb31ced616.tar.gz
android-node-v8-7f81400723f602467e9f611cbef5addb31ced616.tar.bz2
android-node-v8-7f81400723f602467e9f611cbef5addb31ced616.zip
tools: fix tools/addon-verify.js
The current implementation of addon-verify.js is including the code for the "Function arguments" section in test/addons/01_callbacks and there is no directory generated or the "Function arguments section". This continues and leads to the last section, "AtExit", code to be excluded. There is an test/addons/07_atexit_hooks but it contains code from the "Passing wrapped objects around" section. This commit modifies addon-verify to associate headers with code and then iterates over the set and generates the files as a separate step. PR-URL: https://github.com/nodejs/node/pull/14048 Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/addons.md')
-rw-r--r--doc/api/addons.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md
index e973ec4111..c44d31dc1b 100644
--- a/doc/api/addons.md
+++ b/doc/api/addons.md
@@ -1125,7 +1125,7 @@ Test in JavaScript by running:
```js
// test.js
-const addon = require('./build/Release/addon');
+require('./build/Release/addon');
```
[Embedder's Guide]: https://github.com/v8/v8/wiki/Embedder's%20Guide