Files
waf-platform/EdgeNode/internal/js/lib_base.go
2026-02-04 20:27:13 +08:00

28 lines
472 B
Go

// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
//go:build script
package js
type JSBaseLibrary struct {
}
func (this *JSBaseLibrary) JSInit(ctx *Context) {
}
func (this *JSBaseLibrary) JSDone(ctx *Context) {
}
func (this *JSBaseLibrary) JSDispose(ctx *Context) {
}
func (this *JSBaseLibrary) JSGoObjectNotFound() (any, error) {
return nil, ErrGoObjectNotFound
}
func (this *JSBaseLibrary) JSSuccess() (any, error) {
return nil, nil
}