make runtime compatible with wasm
This commit is contained in:
12
runtime/internal/lib/time/zoneinfo_wasm.go
Normal file
12
runtime/internal/lib/time/zoneinfo_wasm.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2023 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package time
|
||||
|
||||
// in wasip1 zoneinfo is managed by the runtime.
|
||||
var platformZoneSources = []string{}
|
||||
|
||||
func initLocal() {
|
||||
localLoc.name = "Local"
|
||||
}
|
||||
Reference in New Issue
Block a user