feat(module,blob): implements full api

This commit is contained in:
2023-03-23 19:01:20 +01:00
parent cf8a3f8ac0
commit 0577762be9
12 changed files with 700 additions and 300 deletions

View File

@ -12,7 +12,7 @@ func AssertType[T any](v goja.Value, rt *goja.Runtime) T {
return c
}
panic(rt.ToValue(errors.Errorf("expected value to be a '%T', got '%T'", *new(T), v.Export())))
panic(rt.ToValue(errors.Errorf("expected value to be a '%T', got '%T'", new(T), v.Export())))
}
func AssertContext(v goja.Value, r *goja.Runtime) context.Context {