issue #22267: jsdocument exposed function