Skip to content

Commit

Permalink
fix 'Script error during processing destruction with ?? operator' (close
Browse files Browse the repository at this point in the history
 #2782) (#2784)

* fix 'Script error during processing destruction with ?? operator' (close #2782)

* update hammerhead
  • Loading branch information
miherlosev authored Jul 7, 2022
1 parent 12a6e27 commit d7db057
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "testcafe-hammerhead",
"description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).",
"version": "24.5.23",
"version": "24.5.24",
"homepage": "https://github.com/DevExpress/testcafe-hammerhead",
"bugs": {
"url": "https://github.com/DevExpress/testcafe-hammerhead/issues"
Expand All @@ -21,7 +21,7 @@
"crypto-md5": "^1.0.0",
"css": "2.2.3",
"debug": "4.3.1",
"esotope-hammerhead": "0.6.1",
"esotope-hammerhead": "0.6.2",
"http-cache-semantics": "^4.1.0",
"iconv-lite": "0.5.1",
"lodash": "^4.17.20",
Expand Down
7 changes: 7 additions & 0 deletions test/server/script-processor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,13 @@ describe('Script processor', () => {
},
]);
});

it('destruction with ?? operator (GH-2782)', () => {
testProcessing([{
src: 'var { t } = data, r = (n ?? "") || t;',
expected: 'var_hh$temp0=data,t=_hh$temp0.t,r=(n??"")||t;',
}]);
});
});

describe('Regression', () => {
Expand Down

0 comments on commit d7db057

Please sign in to comment.