mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 08:30:29 +00:00
10 lines
137 B
Go
10 lines
137 B
Go
package inject
|
|
|
|
import (
|
|
"github.com/dop251/goja"
|
|
)
|
|
|
|
func ThrowTypeError(vm *goja.Runtime, msg string) {
|
|
panic(vm.NewTypeError(msg))
|
|
}
|