mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
This commit is contained in:
@@ -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 + '`';
|
||||
|
||||
Reference in New Issue
Block a user