mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
jsutil: Use Equal for Go 1.13
This commit is contained in:
parent
469dc31765
commit
2bf4a3bb6e
@ -42,7 +42,7 @@ var uint8ArrayObj js.Value
|
|||||||
|
|
||||||
func uint8Array(buffer js.Value, byteOffset, byteLength int) js.Value {
|
func uint8Array(buffer js.Value, byteOffset, byteLength int) js.Value {
|
||||||
if isTypedArrayWritable {
|
if isTypedArrayWritable {
|
||||||
if uint8ArrayObj.IsUndefined() {
|
if Equal(uint8ArrayObj, js.Undefined()) {
|
||||||
uint8ArrayObj = js.Global().Get("Uint8Array").New()
|
uint8ArrayObj = js.Global().Get("Uint8Array").New()
|
||||||
}
|
}
|
||||||
uint8ArrayObj.Set("buffer", buffer)
|
uint8ArrayObj.Set("buffer", buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user