aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/dart.js
diff options
context:
space:
mode:
authorRubén Rincón Blanco <ruben@rinconblanco.es>2022-04-26 15:24:40 +0200
committerGitHub <noreply@github.com>2022-04-26 15:24:40 +0200
commit4965bd6c8101001dd124df38b3da43cdc2c360a4 (patch)
tree4d7e8133219f88e3e6361cceea9bebb84b62ab02 /lib/compilers/dart.js
parente3b9039095333ae3cdec1b9f47419ebac33b6fec (diff)
downloadcompiler-explorer-4965bd6c8101001dd124df38b3da43cdc2c360a4.tar.gz
compiler-explorer-4965bd6c8101001dd124df38b3da43cdc2c360a4.zip
All semver comparisons now ensure it's safe to do so (#3562)
* All semver comparisons now ensure it's safe to do so * Oops, use correct class * Remove leftover import * Leave the Zig fixes for another PR * Fix linter * Fix test issues * Make linter happy, yet again * What? * Address PR review
Diffstat (limited to 'lib/compilers/dart.js')
-rw-r--r--lib/compilers/dart.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/dart.js b/lib/compilers/dart.js
index 527e68fd5..a8a8da5ad 100644
--- a/lib/compilers/dart.js
+++ b/lib/compilers/dart.js
@@ -60,7 +60,7 @@ export class DartCompiler extends BaseCompiler {
filters.binary = true;
const dartCompileIntroduction = '2.10.0';
- if (Semver.lt(this.compiler.semver, dartCompileIntroduction)) {
+ if (Semver.lt(utils.asSafeVer(this.compiler.semver), dartCompileIntroduction, true)) {
return [
'-k', 'aot',
'-o', this.filename(outputFilename),