Skip to content

Commit dac8407

Browse files
mhdawsontargos
authored andcommitted
doc: fix example in node-api docs
Fixes: #39564 Signed-off-by: Michael Dawson <[email protected]> PR-URL: #41264 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Harshitha K P <[email protected]>
1 parent 46b364a commit dac8407

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/n-api.md

+1
Original file line numberDiff line numberDiff line change
@@ -4542,6 +4542,7 @@ snippet:
45424542
function AddTwo(num) {
45434543
return num + 2;
45444544
}
4545+
global.AddTwo = AddTwo;
45454546
```
45464547
45474548
Then, the above function can be invoked from a native add-on using the

0 commit comments

Comments
 (0)