Project

Profile

Help

Bug #4612

closed

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

Added by Michael Kay almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
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

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

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

Actions #1

Updated by Michael Kay almost 4 years 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?

Actions #2

Updated by Debbie Lockett over 3 years ago

  • Category set to Internals
  • Status changed from In Progress to Resolved
  • Fix Committed on JS Branch 2.0 added

Marking as resolved: a further code patch was committed to the saxon-js-enterprise git repo on 2020-06-29 ("SaxonJS2 - correction to AB and AQ literals").

Actions #3

Updated by Community Admin about 3 years ago

  • Applies to JS Branch 2 added
  • Applies to JS Branch deleted (2.0)
Actions #4

Updated by Community Admin about 3 years ago

  • Fix Committed on JS Branch 2 added
  • Fix Committed on JS Branch deleted (2.0)
Actions #5

Updated by Debbie Lockett about 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 2.1

Bug fix applied in the Saxon-JS 2.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page