Update compiler-utils.js

pull/1144/head
Liana Husikyan 4 years ago committed by GitHub
parent 1789187432
commit 97cf6965e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/remix-ide/src/app/compiler/compiler-utils.js

@ -26,9 +26,9 @@ export function canUseWorker (selectedVersion) {
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
semver.gt(version, '0.6.3') || semver.gte(version, '0.6.2') ||
// Only releases are wasm compiled starting with 0.3.6 // Only releases are wasm compiled starting with 0.3.6
(semver.gte(version, '0.3.6') && !isNightly) (semver.gte(version, '0.3.6') && !semver.eq(version, '0.5.17') && !isNightly)
) )
} }

Loading…
Cancel
Save