nashorn2.js revision 6:5a1b0714df0e
14Srgrimes/* 24Srgrimes * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 34Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 44Srgrimes * 54Srgrimes * This code is free software; you can redistribute it and/or modify it 64Srgrimes * under the terms of the GNU General Public License version 2 only, as 74Srgrimes * published by the Free Software Foundation. 84Srgrimes * 94Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 104Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 114Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 124Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 134Srgrimes * accompanied this code). 144Srgrimes * 154Srgrimes * You should have received a copy of the GNU General Public License version 164Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 174Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 184Srgrimes * 194Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 204Srgrimes * or visit www.oracle.com if you need additional information or have any 214Srgrimes * questions. 224Srgrimes */ 234Srgrimes 244Srgrimes/** 254Srgrimes * Regression: NAS2 - lhs of index has no symbol. 264Srgrimes * 274Srgrimes * @test 284Srgrimes * @run 294Srgrimes */ 304Srgrimes 314Srgrimes 324Srgrimesvar obj = { prop: [3, 4] }; 334Srgrimesprint(obj.prop[0]); 344Srgrimesobj.prop[0] = 44; 354Srgrimesprint(obj.prop[0]); 364Srgrimes