| /* |
| * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. |
| * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. |
| */ |
| |
| @file:JsQualifier("ArrayBuffer") |
| package kotlin.js |
| |
| @JsName("isView") |
| @JsPolyfill(""" |
| if (typeof ArrayBuffer.isView === "undefined") { |
| ArrayBuffer.isView = function(a) { |
| return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__; |
| }; |
| } |
| """) |
| internal external fun arrayBufferIsView(value: Any?): Boolean |