Anonymous View
Skip to content

Commit 04c3ddd

Browse files
committed
fix: added Number.prototype methods to allowed natives
1 parent c608342 commit 04c3ddd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/core/src/runtime/common.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ export const ALLOWED_NATIVES = Object.freeze(
100100
Math.tanh,
101101
Math.trunc,
102102
Number,
103+
Number.prototype.toExponential,
104+
Number.prototype.toFixed,
105+
Number.prototype.toPrecision,
103106
Object,
104107
Object.entries,
105108
Object.keys,

0 commit comments

Comments
 (0)