Project

Profile

Help

Bug #4779

Bad command line parameters cause internal error and stack trace

Added by Michael Kay 18 days ago.

Status:
New
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2020-10-04
Due date:
% Done:

0%

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

Description

Incorrect parameter syntax on the xslt3 command line can trigger an internal error and a stack trace,

Example: a call with

xslt3 -xsl:xx.xsl.sef -s:samples.xml -o:out.xml -t  shigher-order-functions

Generates

Missing '=' in parameter 'shigher-order-functions'
Internal error: bad input to string constructor #undefined
Error
    at Object.$internalError$$ [as internalError] (/Users/mike/GitHub/saxon-js-enterprise/build/temp/js/build/SaxonJS2N.debug.js:886:56)
    at new $XdmString$$module$temp$js$source$src$XdmAtomic$ (/Users/mike/GitHub/saxon-js-enterprise/build/temp/js/build/SaxonJS2N.debug.js:1346:72)
    at Object.fromString (/Users/mike/GitHub/saxon-js-enterprise/build/temp/js/build/SaxonJS2N.debug.js:2043:12)
    at /Users/mike/GitHub/saxon-js-enterprise/build/temp/js/build/xslt3ee.js:46:228
    at Array.forEach (<anonymous>)
....etc


Please register to edit this issue

Also available in: Atom PDF Tracking page