test/script/basic/es6/block-function-decl.js.EXPECTED

Fri, 27 Feb 2015 14:33:47 +0100

author
hannesw
date
Fri, 27 Feb 2015 14:33:47 +0100
changeset 1243
2b51c0b3f463
parent 991
b7a2db4de254
permissions
-rw-r--r--

8073707: const re-assignment should not reported as a early error
Reviewed-by: sundar, attila

hannesw@991 1 function f() {
hannesw@991 2 print("in f");
hannesw@991 3 }
hannesw@991 4 in f
hannesw@991 5 function f() {
hannesw@991 6 print("in f");
hannesw@991 7 }
hannesw@991 8 in f
hannesw@991 9 undefined
hannesw@991 10 ReferenceError: "f" is not defined

mercurial