diff options
| author | Damien George <damien@micropython.org> | 2025-10-02 19:49:40 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-10-06 12:35:20 +1100 |
| commit | 01a11ea45efe8e5fe7d2049902f7d6e6818d3ec1 (patch) | |
| tree | 9d82ef2a259a520fcb38e470231baf6d4601aee1 /py | |
| parent | ac4649da6e8328d8e80f4a95156f47d9258a29bf (diff) | |
webassembly/objjsproxy: Support arbitrary number of args with kwargs.
When calling from Python into JavaScript and passing along keyword
arguments, the FFI bindings currently only support at most 1 positional
argument. For example:
import js
js.func(1, b=2, c=3)
This commit fixes that by supporting arbitrary number of positional
arguments, in combination with keyword arguments. So now the following
works:
import js
js.func(1, 2, c=3, d=4)
Tests are added for these new, supported cases.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions
