Damien George
01a11ea45e
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 >
2025-10-06 12:35:20 +11:00
..
2024-05-13 11:48:41 +10:00
2024-05-13 11:48:41 +10:00
2024-04-24 16:24:00 +10:00
2024-04-24 16:24:00 +10:00
2024-04-24 16:24:00 +10:00
2024-04-24 16:24:00 +10:00
2025-09-30 17:39:15 +10:00
2025-09-30 17:39:15 +10:00
2024-05-13 11:52:17 +10:00
2024-05-16 12:49:10 +10:00
2024-03-30 13:13:51 +11:00
2024-03-30 13:13:51 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2025-10-06 12:35:20 +11:00
2025-10-06 12:35:20 +11:00
2024-03-30 13:13:51 +11:00
2024-03-30 13:13:51 +11:00
2024-03-30 13:13:51 +11:00
2024-03-30 13:13:51 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2025-09-26 14:07:07 +10:00
2024-05-07 00:20:56 +10:00
2024-05-07 00:20:56 +10:00
2024-06-28 11:40:24 +10:00
2024-06-28 11:40:24 +10:00
2025-09-26 14:07:07 +10:00
2025-09-26 14:07:07 +10:00
2024-06-18 22:14:34 +10:00
2024-06-18 22:14:34 +10:00
2025-09-26 14:07:07 +10:00
2025-09-26 14:07:07 +10:00
2024-03-22 14:31:25 +11:00
2024-05-16 12:49:10 +10:00
2024-03-22 14:31:25 +11:00
2024-05-16 12:49:10 +10:00
2025-07-24 14:38:08 +10:00
2025-07-24 14:38:08 +10:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-05-16 12:49:42 +10:00
2024-05-16 12:49:42 +10:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2025-07-17 14:37:53 +10:00
2025-07-17 14:37:53 +10:00
2025-07-04 15:08:03 +10:00
2025-07-04 15:08:03 +10:00
2025-09-26 14:02:11 +10:00
2025-09-26 14:02:11 +10:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-05-16 12:44:43 +10:00
2025-09-30 11:04:05 +10:00
2025-09-30 11:04:05 +10:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-05-06 14:04:13 +10:00
2024-05-06 14:04:13 +10:00
2024-05-07 11:33:05 +10:00
2024-05-07 11:33:05 +10:00
2024-03-22 14:31:25 +11:00
2025-07-31 11:40:50 +10:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00
2024-03-22 14:31:25 +11:00