test/script/basic/es6/lexical-toplevel-redeclare-let-on-builtin.js

Mon, 24 Nov 2014 12:03:15 +0100

author
hannesw
date
Mon, 24 Nov 2014 12:03:15 +0100
changeset 1105
c3a510b73875
permissions
-rw-r--r--

8057691: Nashorn: let & const declarations are not shared between scripts
Reviewed-by: lagergren, attila

hannesw@1105 1 /*
hannesw@1105 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
hannesw@1105 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
hannesw@1105 4 *
hannesw@1105 5 * This code is free software; you can redistribute it and/or modify it
hannesw@1105 6 * under the terms of the GNU General Public License version 2 only, as
hannesw@1105 7 * published by the Free Software Foundation.
hannesw@1105 8 *
hannesw@1105 9 * This code is distributed in the hope that it will be useful, but WITHOUT
hannesw@1105 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
hannesw@1105 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
hannesw@1105 12 * version 2 for more details (a copy is included in the LICENSE file that
hannesw@1105 13 * accompanied this code).
hannesw@1105 14 *
hannesw@1105 15 * You should have received a copy of the GNU General Public License version
hannesw@1105 16 * 2 along with this work; if not, write to the Free Software Foundation,
hannesw@1105 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
hannesw@1105 18 *
hannesw@1105 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
hannesw@1105 20 * or visit www.oracle.com if you need additional information or have any
hannesw@1105 21 * questions.
hannesw@1105 22 */
hannesw@1105 23
hannesw@1105 24 /**
hannesw@1105 25 * JDK-8057691: Nashorn: let & const declarations are not shared between scripts
hannesw@1105 26 *
hannesw@1105 27 * @subtest
hannesw@1105 28 */
hannesw@1105 29
hannesw@1105 30 let Object = "LEXICAL BUILTIN";

mercurial