support **= (#4778)

This commit is contained in:
Alex Lam S.L
2021-03-15 13:53:48 +00:00
committed by GitHub
parent 149d75c092
commit 01aa078e9c
3 changed files with 26 additions and 2 deletions

View File

@@ -277,14 +277,15 @@ var ASSIGNMENTS = [
"-=",
"*=",
"/=",
"%=",
"&=",
"|=",
"^=",
"<<=",
">>=",
">>>=",
"%=",
];
if (SUPPORT.exponentiation) ASSIGNMENTS.push("**=");
var UNARY_SAFE = [
"+",