'thing.aborts' fix when using Moz AST

This commit is contained in:
Botaro Shinomiya 2024-06-09 14:21:33 +03:00 committed by GitHub
parent e7b9b4aafb
commit a378330ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);