This line might not work as intended. `this.dependencies` in defined as an object, which you can see here (I've linked to the file in your commit): https://github.com/SunboX/pdf.js/blob/2ee9ab67e771d2c34a81a9946fc4bbcc60fc953f/src/core/evaluator.js#L1459.

In the previous code the object was thus overwritten by an array, which *shouldn't* be an issue. With your change, you instead assign the property `length` to `this.dependencies`, which probably isn't what you want.
I thus think that this line needs to be `this.dependencies = {}` instead.