Mon, 07 Dec 2015 13:15:47 -0800
Merge
attila@973 | 1 | /* |
attila@973 | 2 | * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
attila@973 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
attila@973 | 4 | * |
attila@973 | 5 | * This code is free software; you can redistribute it and/or modify it |
attila@973 | 6 | * under the terms of the GNU General Public License version 2 only, as |
attila@973 | 7 | * published by the Free Software Foundation. |
attila@973 | 8 | * |
attila@973 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
attila@973 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
attila@973 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
attila@973 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
attila@973 | 13 | * accompanied this code). |
attila@973 | 14 | * |
attila@973 | 15 | * You should have received a copy of the GNU General Public License version |
attila@973 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
attila@973 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
attila@973 | 18 | * |
attila@973 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
attila@973 | 20 | * or visit www.oracle.com if you need additional information or have any |
attila@973 | 21 | * questions. |
attila@973 | 22 | */ |
attila@973 | 23 | |
attila@973 | 24 | /** |
attila@973 | 25 | * JDK-8055870: iteration fails if index var is not used |
attila@973 | 26 | * |
attila@973 | 27 | * @test |
attila@973 | 28 | * @run |
attila@973 | 29 | */ |
attila@973 | 30 | |
attila@973 | 31 | function isEmpty2(v) { |
attila@973 | 32 | for (var k in v) { |
attila@973 | 33 | return false; |
attila@973 | 34 | } |
attila@973 | 35 | return true; |
attila@973 | 36 | } |
attila@973 | 37 | |
attila@973 | 38 | x = {test: 'test'} |
attila@973 | 39 | |
attila@973 | 40 | print(isEmpty2(x)) |
attila@973 | 41 |