This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Ecma 6 script introduce default parameters values. https://developer.mozilla.org/cs/docs/Web/JavaScript/Reference/Functions/Default_parameters Currently there are false hints "Expected semicolons ... ". For example: function f (x, y = 7, z = 42) { return x + y + z; } console.log(f(10)); Also names of parameters can be used in default value expression: function singularAutoPlural(singular, plural = singular+"s", rallyingCry = plural + " ATTACK!!!") { return [singular, plural, rallyingCry ]; } Mark occurrences has to mark all occurrences of a parameter in such case.
Hint is fixed.
Fixed. Tests web-main 036571934479
This doesn't always work. See below and attached screenshot in yesterday's trunk: function openPreview( config={} ) { }
Created attachment 159921 [details] with yesterday's trunk (on Win x64)
The feature is not in trunk it is on branch and will be merged later.