Add support for emitting signals for nodejs and the interpreter

This also enables the property and signal accessor test case for js.
This commit is contained in:
Simon Hausmann 2020-06-12 10:35:26 +02:00
parent ef9d3963e4
commit 84d8eaa130
4 changed files with 61 additions and 4 deletions

View file

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