Created attachment 13675 [details] Patch that changes s/link/links/ and s/n/link/ The reason for this is because the code does not use correct iterator variable name in the for-loop. Attached is a patch that changes the variable names to fix this.
commit db938eebb82e08f6de82c4f1d8536d589a94ddcf Author: Tor Andersson <tor.andersson@artifex.com> Date: Mon May 15 16:10:08 2017 +0200 Fix 697898: Typo in iterator in JS Page.getLinks().