diff --git a/package-lock.json b/package-lock.json index 06fb5710a8..0b3ffb26fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14183,9 +14183,9 @@ "dev": true }, "uglify-js": { - "version": "3.17.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "version": "3.19.0", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.0.tgz", + "integrity": "sha512-wNKHUY2hYYkf6oSFfhwwiHo4WCHzHmzcXsqXYTN9ja3iApYIFbb2U6ics9hBcYLHcYGQoAlwnZlTrf3oF+BL/Q==", "dev": true }, "uglify-to-browserify": { diff --git a/package.json b/package.json index 044948e166..1a67847f82 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 0160a2b9d8..1f3906e981 100644 --- a/src/js/mixins/evented.js +++ b/src/js/mixins/evented.js @@ -182,7 +182,10 @@ const normalizeListenArgs = (self, args, fnName) => { [type, listener] = args; } else { - [target, type, listener] = args; + target = args[0]; + type = args[1]; + listener = args[2]; + // [target, type, listener] = args; } validateTarget(target, self, fnName);