Skip to content

Commit 2b98693

Browse files
authored
Remove outdated note in "Interacting with code" docs (#26638)
`DEFAULT_LIBRARY_FUNCS_TO_INCLUDE` is not needed when `EXPORTED_FUNCTIONS` is used Fixes: #26629
1 parent ecb9e39 commit 2b98693

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,3 +602,4 @@ a license to everyone to use it as detailed in LICENSE.)
602602
* Christian Lloyd <clloyd@teladochealth.com> (copyright owned by Teladoc Health, Inc.)
603603
* Sean Morris <sean@seanmorr.is>
604604
* Mitchell Wills <mwills@google.com> (copyright owned by Google, Inc.)
605+
* Han Jiang <jhcarl0814@gmail.com>

site/source/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ parameters to pass to the function:
146146
including function names.
147147
Exporting functions allows you to continue to access them using the
148148
original name through the global ``Module`` object.
149-
- If you want to export a JS library function (something from a
150-
``src/library*.js`` file, for example), then in addition to
151-
``EXPORTED_FUNCTIONS``, you need to add it to ``DEFAULT_LIBRARY_FUNCS_TO_INCLUDE``,
152-
as the latter will force the method to actually be included in
153-
the build.
154149

155150
- The compiler will remove code it does not see is used, to improve code
156151
size. If you use ``ccall`` in a place it sees, like code in a ``--pre-js``

0 commit comments

Comments
 (0)