Boa: Parse error for unsigned right shift assignment

Created on 9 Aug 2020  路  4Comments  路  Source: boa-dev/boa

Hi,

Following code results in parse error;

let a = 5; //  00000000000000000000000000000101

a >>>= 2;  //  00000000000000000000000000000001
console.log(a);
// expected output: 1

let b = -5; // -00000000000000000000000000000101

b >>>= 2;   //  00111111111111111111111111111110
console.log(b);
// expected output: 1073741822

thanks

bug enhancement good first issue parser execution

All 4 comments

This is Fixed on master branch

Actually, the >>>= and >>> operators are not yet implemented. I'm re-opening this.

Actually, the >>>= and >>> operators are not yet implemented. I'm re-opening this.

I must have only checked for >>> :sweat_smile: .
The >>>= is not implemented but >>> is (in #520). >>>= should be easy to implement.

I would like to work on this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IovoslavIovchev picture IovoslavIovchev  路  4Comments

jasonwilliams picture jasonwilliams  路  6Comments

attliaLin picture attliaLin  路  3Comments

croraf picture croraf  路  4Comments

jasonwilliams picture jasonwilliams  路  4Comments