support nullish coalescing operator (#4678)

This commit is contained in:
Alex Lam S.L
2021-02-23 21:57:11 +00:00
committed by GitHub
parent d68d155f93
commit c885660347
16 changed files with 177 additions and 36 deletions

View File

@@ -259,7 +259,7 @@ describe("comments", function() {
assert.strictEqual(result.code, code);
});
it("Should handle comments around parenthesis correctly", function() {
it("Should handle comments around parentheses correctly", function() {
var code = [
"a();",
"/* foo */",

View File

@@ -84,7 +84,7 @@ describe("parentheses", function() {
}
});
it("Should compress leading parenthesis with reasonable performance", function() {
it("Should compress leading parentheses with reasonable performance", function() {
this.timeout(30000);
var code = [
"({}?0:1)&&x();",