Skip to content

Commit 41a6a43

Browse files
Clarify use of final in docs (#2592)
Follow-up of #2588
1 parent 316b0ce commit 41a6a43

File tree

1 file changed

+3
-1
lines changed
  • guide/src/reference/attributes/on-js-imports

1 file changed

+3
-1
lines changed

guide/src/reference/attributes/on-js-imports/final.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ attribute](structural.html). It configures how `wasm-bindgen` will generate JS
55
imports to call the imported function. Notably a function imported by `final`
66
never changes after it was imported, whereas a function imported by default (or
77
with `structural`) is subject to runtime lookup rules such as walking the
8-
prototype chain of an object.
8+
prototype chain of an object. Note that `final` is not suitable for accessing
9+
data descriptor properties of JS objects; to accomplish this, use the `structural`
10+
attribute.
911

1012
[host-bindings]: https://github.com/WebAssembly/host-bindings
1113
[reference-types]: https://github.com/WebAssembly/reference-types

0 commit comments

Comments
 (0)