From a378330ca67745feaec5403b274c629e7a02162c Mon Sep 17 00:00:00 2001 From: Botaro Shinomiya <157493292+citrizon@users.noreply.github.com> Date: Sun, 9 Jun 2024 14:21:33 +0300 Subject: [PATCH] 'thing.aborts' fix when using Moz AST --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress.js b/lib/compress.js index 5cf2a2e6..bf2d895d 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -6275,7 +6275,7 @@ Compressor.prototype.compress = function(node) { // tell me if a statement aborts function aborts(thing) { - return thing && thing.aborts(); + return thing && thing.aborts && thing.aborts(); } (function(def) { def(AST_Statement, return_null);