GetBuiltInFunction() add throwOnError argument

Description

this way we can avoid a try catch just to check is say ESAPI is installed getBuiltinFunction('encodeForHtml')

also, if you call isObject() the result, it returns false. yet the docs says Returns a built-in function as an object,

https://docs.lucee.org/reference/functions/getbuiltinfunction.html

calling len() or isEmpty throws, structCount works however

on invalid call of the function len, first Argument (object) is invalid, this type [lucee.runtime.type.BIF] is not supported for returning the len on line 5

this is a lucee only function according to cfdocs, maybe we could change the default behaviour for 6, returning a empty object?

Environment

None

is blocked by

Activity

Show:

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 8 August 2022 at 10:54
Updated 1 July 2023 at 15:39

Flag notifications