1 java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:17 ES6 function rest parameter declaration is not yet implemented 2 function func(...args) {} 3 ^ 4 java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:23 ES6 function rest parameter declaration is not yet implemented 5 function func(x, y, ...args) {} 6 ^ 7 java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:11 ES6 function rest parameter declaration is not yet implemented 8 ({ meth(...args) {} }) 9 ^ 10 java.lang.RuntimeException: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:17 ES6 function rest parameter declaration is not yet implemented 11 ({ meth(x, y, ...args) {} }) 12 ^ 13 SyntaxError: test/nashorn/script/basic/es6/restparam.js#35:6<eval>:1:15 Duplicate parameter name "x" 14 ({ meth(x = 0, x) {} }) 15 ^