mirror of
https://github.com/hanzoai/esbuild.git
synced 2026-09-24 16:58:50 +00:00
This changes Safari support for template literals from v9 to v13, which appears to be a legitimate fix for a bug in esbuild's compat-table processing. Safari v12 should be considered to not fully support template literals because it has a GC bug. More information can be found in the following links: * https://bugs.webkit.org/show_bug.cgi?id=190756 * https://github.com/kangax/compat-table/issues/1472 * https://github.com/kangax/compat-table/pull/1477
51 lines
881 B
Go
51 lines
881 B
Go
// This file was automatically generated by "js_table.ts"
|
|
|
|
package api
|
|
|
|
import "github.com/evanw/esbuild/internal/compat"
|
|
|
|
type EngineName uint8
|
|
|
|
const (
|
|
EngineChrome EngineName = iota
|
|
EngineDeno
|
|
EngineEdge
|
|
EngineFirefox
|
|
EngineHermes
|
|
EngineIE
|
|
EngineIOS
|
|
EngineNode
|
|
EngineOpera
|
|
EngineRhino
|
|
EngineSafari
|
|
)
|
|
|
|
func convertEngineName(engine EngineName) compat.Engine {
|
|
switch engine {
|
|
case EngineChrome:
|
|
return compat.Chrome
|
|
case EngineDeno:
|
|
return compat.Deno
|
|
case EngineEdge:
|
|
return compat.Edge
|
|
case EngineFirefox:
|
|
return compat.Firefox
|
|
case EngineHermes:
|
|
return compat.Hermes
|
|
case EngineIE:
|
|
return compat.IE
|
|
case EngineIOS:
|
|
return compat.IOS
|
|
case EngineNode:
|
|
return compat.Node
|
|
case EngineOpera:
|
|
return compat.Opera
|
|
case EngineRhino:
|
|
return compat.Rhino
|
|
case EngineSafari:
|
|
return compat.Safari
|
|
default:
|
|
panic("Invalid engine name")
|
|
}
|
|
}
|