...
1 package gojs
2
3 import (
4 "context"
5
6 "github.com/tetratelabs/wazero/api"
7 "github.com/tetratelabs/wazero/internal/gojs/custom"
8 "github.com/tetratelabs/wazero/internal/gojs/goos"
9 )
10
11 var (
12
13
14
15 jsDateConstructor = newJsVal(goos.RefJsDateConstructor, custom.NameDate)
16
17
18
19 jsDate = newJsVal(goos.RefJsDate, custom.NameDate).
20 addFunction(custom.NameDateGetTimezoneOffset, jsDateGetTimezoneOffset{})
21 )
22
23
24 type jsDateGetTimezoneOffset struct{}
25
26 func (jsDateGetTimezoneOffset) invoke(context.Context, api.Module, ...interface{}) (interface{}, error) {
27 return uint32(0), nil
28 }
29
View as plain text