jdk-24/test/nashorn/script/basic/es6/restparam.js.EXPECTED
Erik Joelsson 72c4ec5462 8187444: Forest Consolidation: Make build work
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Reviewed-by: darcy, ihse
2017-09-12 19:03:56 +02:00

16 lines
928 B
Plaintext

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