hannesw@1975: /* hannesw@1975: * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. hannesw@1975: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. hannesw@1975: * hannesw@1975: * This code is free software; you can redistribute it and/or modify it hannesw@1975: * under the terms of the GNU General Public License version 2 only, as hannesw@1975: * published by the Free Software Foundation. hannesw@1975: * hannesw@1975: * This code is distributed in the hope that it will be useful, but WITHOUT hannesw@1975: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or hannesw@1975: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License hannesw@1975: * version 2 for more details (a copy is included in the LICENSE file that hannesw@1975: * accompanied this code). hannesw@1975: * hannesw@1975: * You should have received a copy of the GNU General Public License version hannesw@1975: * 2 along with this work; if not, write to the Free Software Foundation, hannesw@1975: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. hannesw@1975: * hannesw@1975: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA hannesw@1975: * or visit www.oracle.com if you need additional information or have any hannesw@1975: * questions. hannesw@1975: */ hannesw@1975: hannesw@1975: /** hannesw@1975: * JDK-8166902: Nested object literal property maps not reset in optimistic recompilation hannesw@1975: * hannesw@1975: * @test hannesw@1975: * @run hannesw@1975: */ hannesw@1975: hannesw@1975: var o = { hannesw@1975: a: "A", hannesw@1975: b: "B" hannesw@1975: }; hannesw@1975: hannesw@1975: var m = { hannesw@1975: x: { z: o.a }, hannesw@1975: y: o.b hannesw@1975: }; hannesw@1975: hannesw@1975: Assert.assertEquals(m.x.z, "A"); hannesw@1975: Assert.assertEquals(m.y, "B"); hannesw@1975: