diff --git a/packages/bruno-js/src/utils.js b/packages/bruno-js/src/utils.js index a30ad8e8e0..e15ec09a7c 100644 --- a/packages/bruno-js/src/utils.js +++ b/packages/bruno-js/src/utils.js @@ -92,7 +92,12 @@ const evaluateJsTemplateLiteral = (templateLiteral, context) => { } if (!isNaN(templateLiteral)) { - return Number(templateLiteral); + const number = Number(templateLiteral); + // Check if the number is too high. Too high number might get altered, see #1000 + if (number > Number.MAX_SAFE_INTEGER) { + return templateLiteral; + } + return number; } templateLiteral = '`' + templateLiteral + '`';