diff --git a/package.json b/package.json index 01d9d962b..27d31d7a7 100644 --- a/package.json +++ b/package.json @@ -161,7 +161,7 @@ "shx": "^0.3.2", "sinon": "^11.1.1", "typescript": "^5.5.2", - "uglify-js": "^3.6.0", + "uglify-js": "^3.19.0", "unified": "^7.0.2", "videojs-generate-karma-config": "^8.1.0", "videojs-languages": "^2.0.0", diff --git a/src/js/mixins/evented.js b/src/js/mixins/evented.js index 0160a2b9d..0d6bea5cc 100644 --- a/src/js/mixins/evented.js +++ b/src/js/mixins/evented.js @@ -182,7 +182,12 @@ const normalizeListenArgs = (self, args, fnName) => { [type, listener] = args; } else { - [target, type, listener] = args; + // This was `[target, type, listener] = args;` but this block needs more than + // one statement to produce minified output compatible with Chrome 53. + // See https://github.com/videojs/video.js/pull/8810 + target = args[0]; + type = args[1]; + listener = args[2]; } validateTarget(target, self, fnName);