Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
5.15.2
Description
As of ECMAScript 6 (ECMA-262), default parameters are supported. However this gives a syntax error as of 5.15.2.
A workaround is to use a function wrapper:
signal mySignal(int x, int y) function emitMySignal(x, y = 0) { mySignal(x, y) }