Support for signal with arguments in the interpreter

This commit is contained in:
Olivier Goffart 2020-09-09 11:27:01 +02:00
parent 2ffef9b31a
commit 42aa91e3eb
7 changed files with 137 additions and 55 deletions

View file

@ -38,7 +38,7 @@ require.extensions['.60'] =
});
c.signals().forEach(x => {
Object.defineProperty(ret, x, {
get() { return function () { comp.emit_signal(x); } },
get() { return function () { comp.emit_signal(x, [...arguments]); } },
enumerable: true,
})
});