|
|
@ -23,6 +23,9 @@ export function urlFromVersion (version) { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function canUseWorker (selectedVersion) { |
|
|
|
export function canUseWorker (selectedVersion) { |
|
|
|
const version = semver.coerce(selectedVersion) |
|
|
|
const version = semver.coerce(selectedVersion) |
|
|
|
|
|
|
|
if (!version) { |
|
|
|
|
|
|
|
return browserSupportWorker() |
|
|
|
|
|
|
|
} |
|
|
|
const isNightly = selectedVersion.includes('nightly') |
|
|
|
const isNightly = selectedVersion.includes('nightly') |
|
|
|
return browserSupportWorker() && ( |
|
|
|
return browserSupportWorker() && ( |
|
|
|
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
|
|
|
|
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
|
|
|
|