From 7728ee65c27eb55165427f31b8548a3d78f51f10 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Mon, 24 Mar 2025 15:33:19 +0100 Subject: [PATCH 1/2] Update LibJS setup --- src/engines/libjs.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/engines/libjs.js b/src/engines/libjs.js index 8971f35..e4f77b7 100644 --- a/src/engines/libjs.js +++ b/src/engines/libjs.js @@ -62,7 +62,6 @@ class LibJSInstaller extends Installer { } async install() { - await this.registerAssets('lib/**'); const js = await this.registerAsset('bin/js'); this.binPath = await this.registerScript('ladybird-js', `"${js}"`); } From 5c31261e7452f528e7e0d05f9992a077de253346 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 29 May 2025 18:30:28 -0600 Subject: [PATCH 2/2] libjs: Add new flag to disable quotes around strings --- src/engines/libjs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engines/libjs.js b/src/engines/libjs.js index e4f77b7..e2babd9 100644 --- a/src/engines/libjs.js +++ b/src/engines/libjs.js @@ -63,12 +63,12 @@ class LibJSInstaller extends Installer { async install() { const js = await this.registerAsset('bin/js'); - this.binPath = await this.registerScript('ladybird-js', `"${js}"`); + this.binPath = await this.registerScript('ladybird-js', `"${js} --disable-string-quotes"`); } async test() { - const program = 'console.log("42")'; - const output = '"42"'; + const program = 'print("42")'; + const output = '42'; assert.strictEqual( (await execa(this.binPath, ['-c', program])).stdout,