nashorn/test/script/basic/es6/spread.js.EXPECTED
author hannesw
Mon, 07 Nov 2016 14:48:26 +0100
changeset 41924 d55f24e8953e
permissions -rw-r--r--
8156619: Unimplemented ES6 features should result in clear Error being thrown Reviewed-by: sundar, attila

java.lang.RuntimeException: test/script/basic/es6/spread.js#34:8<eval>:1:9 ES6 spread operator is not yet implemented
var x = [...args]
         ^
java.lang.RuntimeException: test/script/basic/es6/spread.js#34:8<eval>:1:15 ES6 spread operator is not yet implemented
var x = [1, 2, ...args]
               ^
java.lang.RuntimeException: test/script/basic/es6/spread.js#34:8<eval>:1:9 ES6 spread operator is not yet implemented
var x = [...args, 3, 5]
         ^
java.lang.RuntimeException: test/script/basic/es6/spread.js#34:8<eval>:1:13 ES6 spread operator is not yet implemented
var r = func(...arr)
             ^