2017-09-12 19:03:56 +02:00
|
|
|
java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:17 ES6 function rest parameter declaration is not yet implemented
|
2016-11-07 14:48:26 +01:00
|
|
|
function func(...args) {}
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:23 ES6 function rest parameter declaration is not yet implemented
|
2016-11-07 14:48:26 +01:00
|
|
|
function func(x, y, ...args) {}
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:11 ES6 function rest parameter declaration is not yet implemented
|
2016-11-07 14:48:26 +01:00
|
|
|
({ meth(...args) {} })
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:17 ES6 function rest parameter declaration is not yet implemented
|
2016-11-07 14:48:26 +01:00
|
|
|
({ meth(x, y, ...args) {} })
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:15 Duplicate parameter name "x"
|
2016-11-07 14:48:26 +01:00
|
|
|
({ meth(x = 0, x) {} })
|
|
|
|
^
|