Wed, 05 Sep 2018 01:21:35 -0700
Added tag jdk8u192-b09 for changeset 456c0d45c43b
hannesw@2304 | 1 | /* |
hannesw@2304 | 2 | * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
hannesw@2304 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
hannesw@2304 | 4 | * |
hannesw@2304 | 5 | * This code is free software; you can redistribute it and/or modify it |
hannesw@2304 | 6 | * under the terms of the GNU General Public License version 2 only, as |
hannesw@2304 | 7 | * published by the Free Software Foundation. |
hannesw@2304 | 8 | * |
hannesw@2304 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
hannesw@2304 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
hannesw@2304 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
hannesw@2304 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
hannesw@2304 | 13 | * accompanied this code). |
hannesw@2304 | 14 | * |
hannesw@2304 | 15 | * You should have received a copy of the GNU General Public License version |
hannesw@2304 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
hannesw@2304 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
hannesw@2304 | 18 | * |
hannesw@2304 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
hannesw@2304 | 20 | * or visit www.oracle.com if you need additional information or have any |
hannesw@2304 | 21 | * questions. |
hannesw@2304 | 22 | */ |
hannesw@2304 | 23 | |
hannesw@2304 | 24 | /** |
hannesw@2304 | 25 | * JDK-8186646: Nashorn: "duplicate code" assertion when binding a vararg function that just passes arguments along |
hannesw@2304 | 26 | * |
hannesw@2304 | 27 | * @test |
hannesw@2304 | 28 | * @run |
hannesw@2304 | 29 | */ |
hannesw@2304 | 30 | |
hannesw@2304 | 31 | var fn2 = function () {}; |
hannesw@2304 | 32 | |
hannesw@2304 | 33 | var fn = function () { |
hannesw@2304 | 34 | fn2.apply(null, arguments); |
hannesw@2304 | 35 | }; |
hannesw@2304 | 36 | |
hannesw@2304 | 37 | fn(); |
hannesw@2304 | 38 | fn.bind(); |
hannesw@2304 | 39 |