mirror of
https://github.com/usebruno/bruno.git
synced 2025-03-14 23:08:20 +01:00
This commit is contained in:
parent
4e34aba1ca
commit
dbb5e912eb
@ -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 + '`';
|
||||
|
Loading…
Reference in New Issue
Block a user