nashorn/test/script/basic/es6/restparam.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41924
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     1
java.lang.RuntimeException: test/script/basic/es6/restparam.js#35:6<eval>:1:17 ES6 function rest parameter declaration is not yet implemented
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     2
function func(...args) {}
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     3
                 ^
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     4
java.lang.RuntimeException: test/script/basic/es6/restparam.js#35:6<eval>:1:23 ES6 function rest parameter declaration is not yet implemented
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     5
function func(x, y, ...args) {}
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     6
                       ^
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     7
java.lang.RuntimeException: test/script/basic/es6/restparam.js#35:6<eval>:1:11 ES6 function rest parameter declaration is not yet implemented
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     8
({ meth(...args) {} })
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
     9
           ^
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
    10
java.lang.RuntimeException: test/script/basic/es6/restparam.js#35:6<eval>:1:17 ES6 function rest parameter declaration is not yet implemented
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
    11
({ meth(x, y, ...args) {} })
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
    12
                 ^
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
    13
SyntaxError: test/script/basic/es6/restparam.js#35:6<eval>:1:15 Duplicate parameter name "x"
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
    14
({ meth(x = 0, x) {} })
d55f24e8953e 8156619: Unimplemented ES6 features should result in clear Error being thrown
hannesw
parents:
diff changeset
    15
               ^