From dfd314dd949cc603e8ab1d47803c74a71467037f Mon Sep 17 00:00:00 2001 From: Oliver Medhurst Date: Mon, 9 Dec 2024 04:37:37 +0000 Subject: [PATCH] site: make test262% always 2 places --- index.html | 2 +- package.json | 2 +- runner/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b4dfd21b..f44d7c96 100644 --- a/index.html +++ b/index.html @@ -1428,7 +1428,7 @@

Playground

const history = await (await fetch('/test262/history.json')).json(); const percent = history[0].results[0]; - test262_percent.innerHTML = `${percent}% ${'█'.repeat(Math.floor(percent / 4))}${'░'.repeat(Math.ceil((100 - percent) / 4))}`; + test262_percent.innerHTML = `${percent.toFixed(2)}% ${'█'.repeat(Math.floor(percent / 4))}${'░'.repeat(Math.ceil((100 - percent) / 4))}`; const colors = { pass: '#57f287', diff --git a/package.json b/package.json index 63f0b228..60df50b0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "porffor", "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js", - "version": "0.55.0", + "version": "0.55.1", "author": "CanadaHonk", "license": "MIT", "scripts": {}, diff --git a/runner/index.js b/runner/index.js index 8b0a4150..ccb150d8 100644 --- a/runner/index.js +++ b/runner/index.js @@ -1,6 +1,6 @@ #!/usr/bin/env node import fs from 'node:fs'; -globalThis.version = '0.55.0'; +globalThis.version = '0.55.1'; // deno compat if (typeof process === 'undefined' && typeof Deno !== 'undefined') {