This repository was archived by the owner on Apr 30, 2019. It is now read-only.
File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ import (
13
13
)
14
14
15
15
var (
16
- Undefined = js .Undefined
17
- Null = js .Null
18
- Global = js .Global
16
+ Undefined = js .Undefined ()
17
+ Null = js .Null ()
18
+ Global = js .Global ()
19
19
)
20
20
21
21
type Callback = js.Callback
@@ -41,15 +41,15 @@ type Error = js.Error
41
41
type Value = js.Value
42
42
43
43
var (
44
- int8Array = js .Global .Get ("Int8Array" )
45
- int16Array = js .Global .Get ("Int16Array" )
46
- int32Array = js .Global .Get ("Int32Array" )
47
- int64Array = js .Global .Get ("Int64Array" )
48
- uint16Array = js .Global .Get ("Uint16Array" )
49
- uint32Array = js .Global .Get ("Uint32Array" )
50
- uint64Array = js .Global .Get ("Uint64Array" )
51
- float32Array = js .Global .Get ("Float32Array" )
52
- float64Array = js .Global .Get ("Float64Array" )
44
+ int8Array = js .Global () .Get ("Int8Array" )
45
+ int16Array = js .Global () .Get ("Int16Array" )
46
+ int32Array = js .Global () .Get ("Int32Array" )
47
+ int64Array = js .Global () .Get ("Int64Array" )
48
+ uint16Array = js .Global () .Get ("Uint16Array" )
49
+ uint32Array = js .Global () .Get ("Uint32Array" )
50
+ uint64Array = js .Global () .Get ("Uint64Array" )
51
+ float32Array = js .Global () .Get ("Float32Array" )
52
+ float64Array = js .Global () .Get ("Float64Array" )
53
53
)
54
54
55
55
func ValueOf (x interface {}) Value {
You can’t perform that action at this time.
0 commit comments