Project

Profile

Help

Bug #4611

closed

XPath expression "function(){'x'}()" crashes with TypeError: this.closureContext.localVars.slice is not a function

Added by Michael Kay over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2020-06-25
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
2
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Executing the expression XPath expression function(){'x'}() crashes with TypeError: this.closureContext.localVars.slice is not a function.

It appears that context.localVars is set to {} when it should be [].

I can't see where this initialization is happening.


Related issues

Has duplicate SaxonJS - Bug #4653: fn:fold-left with inline function in SaxonJS.XPath.evaluateDuplicateDebbie Lockett2020-07-24

Actions

Please register to edit this issue

Also available in: Atom PDF Tracking page