tc39_norace_test.go 319 B

12345678910111213141516171819
  1. //go:build !race
  2. // +build !race
  3. package goja
  4. import "testing"
  5. // Prevent linter warnings about unused type
  6. var _ = tc39Test{name: "", f: nil}
  7. func (ctx *tc39TestCtx) runTest(name string, f func(t *testing.T)) {
  8. ctx.t.Run(name, func(t *testing.T) {
  9. t.Parallel()
  10. f(t)
  11. })
  12. }
  13. func (ctx *tc39TestCtx) flush() {
  14. }