Project

Profile

Help

Bug #4612

XPath expression "function($x){true()}(17)" crashes "$elaborate$$ is not a function"

Added by Michael Kay 18 days ago. Updated 18 days ago.

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

0%

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

Description

XPath expression 'function($x){true()}(17)' crashes "$elaborate$$ is not a function".

It compiles to an InlineFunction object whose body property is null.

History

#1 Updated by Michael Kay 18 days ago

  • Status changed from New to In Progress
  • Assignee changed from Michael Kay to John Lumley

Literal.exportSingle() doesn't output the expression properties for case "AB" - Literal.js line 54.

Changes this fixes the problem.

I note that the case "AQ" branch also doesn't output the supplied properties. JWL to review, please?

Please register to edit this issue

Also available in: Atom PDF Tracking page