Files
bun.sh/test/snippets/number-literal-bug.js
2022-06-22 23:21:48 -07:00

12 lines
272 B
JavaScript

// 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);
}