fix(compiler): make unary plus operator consistent to JavaScript (#22154)
fixes #22089 PR Close #22154
This commit is contained in:
@ -103,7 +103,9 @@ import {validate} from './validator';
|
||||
|
||||
it('should parse unary - expressions', () => {
|
||||
checkAction('-1', '0 - 1');
|
||||
checkAction('+1', '1');
|
||||
checkAction('+1', '1 - 0');
|
||||
checkAction(`-'1'`, `0 - "1"`);
|
||||
checkAction(`+'1'`, `"1" - 0`);
|
||||
});
|
||||
|
||||
it('should parse unary ! expressions', () => {
|
||||
|
Reference in New Issue
Block a user