From 01d1f1d258a6706b4221028ed89c58ea94e0ec69 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 15 Nov 2021 15:51:39 -0800 Subject: Fix #66 embarassing! --- integration/snippets/number-literal-bug.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 integration/snippets/number-literal-bug.js (limited to 'integration/snippets/number-literal-bug.js') diff --git a/integration/snippets/number-literal-bug.js b/integration/snippets/number-literal-bug.js new file mode 100644 index 000000000..cb6990348 --- /dev/null +++ b/integration/snippets/number-literal-bug.js @@ -0,0 +1,11 @@ +// test that we don't call functions on number literals +export function test() { + const precision = 10; + try { + parseFloat((0.0).toPrecision(precision) + "1"); + } catch (exception) { + throw new Error("Test Failed", exception); + } + + testDone(import.meta.url); +} -- cgit v1.2.3