lagergren@1084: /* lagergren@1084: * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. lagergren@1084: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. lagergren@1084: * lagergren@1084: * This code is free software; you can redistribute it and/or modify it lagergren@1084: * under the terms of the GNU General Public License version 2 only, as lagergren@1084: * published by the Free Software Foundation. lagergren@1084: * lagergren@1084: * This code is distributed in the hope that it will be useful, but WITHOUT lagergren@1084: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or lagergren@1084: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License lagergren@1084: * version 2 for more details (a copy is included in the LICENSE file that lagergren@1084: * accompanied this code). lagergren@1084: * lagergren@1084: * You should have received a copy of the GNU General Public License version lagergren@1084: * 2 along with this work; if not, write to the Free Software Foundation, lagergren@1084: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. lagergren@1084: * lagergren@1084: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA lagergren@1084: * or visit www.oracle.com if you need additional information or have any lagergren@1084: * questions. lagergren@1084: */ lagergren@1084: lagergren@1084: /** lagergren@1084: * JDK-8061959 - Checks for the existence of ArrayBufferView lagergren@1084: * lagergren@1084: * @test lagergren@1084: * @run lagergren@1084: */ lagergren@1084: lagergren@1084: print(ArrayBuffer.isView(new Int8Array(4))); lagergren@1084: print(ArrayBuffer.isView("gorilla")); lagergren@1084: print(ArrayBuffer.isView()); lagergren@1084: lagergren@1084: