Skip to content

Commit c38796b

Browse files
committed
Add some documentation for functions on the demo site
1 parent 94d6a91 commit c38796b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

wasm/demo/src/index.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,17 @@ <h3>Standard Output</h3>
5151
</li>
5252
<li>
5353
<code>vars</code>: an object that will be available in
54-
python as the variable <code>js_vars</code>. Again, only
55-
values that can be serialized with
54+
python as the variable <code>js_vars</code>. Only
55+
functions and values that can be serialized with
5656
<code>JSON.stringify()</code> will go through.
5757
</li>
5858
</ul>
5959
</li>
60+
<li>
61+
JS functions that get passed to python will recieve positional
62+
args as positional args and kwargs as the
63+
<code>this</code> argument
64+
</li>
6065
</ul>
6166

6267
<a href="https://github.com/RustPython/RustPython">

0 commit comments

Comments
 (0)