mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
12 lines
272 B
JavaScript
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);
|
|
}
|