Skip to content

Commit

Permalink
Clarify use of final in docs (#2592)
Browse files Browse the repository at this point in the history
Follow-up of #2588
  • Loading branch information
Jules-Bertholet authored Jun 17, 2021
1 parent 316b0ce commit 41a6a43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guide/src/reference/attributes/on-js-imports/final.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ attribute](structural.html). It configures how `wasm-bindgen` will generate JS
imports to call the imported function. Notably a function imported by `final`
never changes after it was imported, whereas a function imported by default (or
with `structural`) is subject to runtime lookup rules such as walking the
prototype chain of an object.
prototype chain of an object. Note that `final` is not suitable for accessing
data descriptor properties of JS objects; to accomplish this, use the `structural`
attribute.

[host-bindings]: https://github.com/WebAssembly/host-bindings
[reference-types]: https://github.com/WebAssembly/reference-types
Expand Down

0 comments on commit 41a6a43

Please sign in to comment.