Skip to content

Commit f741cd2

Browse files
authored
docs: clarify FFI permissions for Node-API addons (#2630)
Thank you!
1 parent 1706808 commit f741cd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

runtime/fundamentals/node.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,12 @@ As of Deno 2.0, npm packages using Node-API addons **are only supported when a
623623
In case of misconfiguration Deno will provide hints how the situation can be
624624
resolved.
625625
626+
Like with all native FFI, you must also pass the `--allow-ffi` flag to grant
627+
Node-API addons explicit permission to run outside of the runtime sandbox.
628+
Review the
629+
[Security and permissions](/runtime/fundamentals/security/#ffi-(foreign-function-interface))
630+
documentation for more information.
631+
626632
## Migrating from Node to Deno
627633
628634
Running your Node.js project with Deno is a straightforward process. In most

0 commit comments

Comments
 (0)