-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
api_js_table.go
50 lines (45 loc) · 885 Bytes
/
api_js_table.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// This file was automatically generated by "compat-table.js"
package api
import "github.com/evanw/esbuild/internal/compat"
type EngineName uint8
const (
EngineChrome EngineName = iota
EngineEdge
EngineFirefox
EngineIE
EngineIOS
EngineNode
EngineOpera
EngineSafari
EngineDeno
EngineHermes
EngineRhino
)
func convertEngineName(engine EngineName) compat.Engine {
switch engine {
case EngineChrome:
return compat.Chrome
case EngineEdge:
return compat.Edge
case EngineFirefox:
return compat.Firefox
case EngineIE:
return compat.IE
case EngineIOS:
return compat.IOS
case EngineNode:
return compat.Node
case EngineOpera:
return compat.Opera
case EngineSafari:
return compat.Safari
case EngineDeno:
return compat.Deno
case EngineHermes:
return compat.Hermes
case EngineRhino:
return compat.Rhino
default:
panic("Invalid engine name")
}
}