typescript-estree icon indicating copy to clipboard operation
typescript-estree copied to clipboard

Legacy octal numbers

Open armano2 opened this issue 6 years ago • 2 comments

Right now we are converting raw value to number by calling parse function from js, but there is one syntax witch is allowed in nonstrict mode 0777

this is legacy way to do binary values, before 0b777 was added

right now we are setting value of node to 777 and we should set it to 511

armano2 avatar Jan 12 '19 19:01 armano2

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Deprecated_octal

armano2 avatar Jan 12 '19 19:01 armano2

while doing this we have to make sure that we support https://github.com/tc39/proposal-numeric-separator

armano2 avatar Jan 13 '19 20:01 armano2