`keyword_false` `keyword_include` `keyword_undefined` `resolution_fixed` `type_bug` | by aubergine ___ If the include() works, then include() returns 'undefined'. If it fails, it returns 'false'. In JS, 'undefined' type coerces to 'false' in an 'if' statement.... Could this: return QScriptValue(); be changed to this: return QScriptValue(true); As that will make it a little easier for scripts to determine the outcome of an include() :) ___ _Issue migrated from [trac:3188](https://developer.wz2100.net/ticket/3188) at 2022-04-16 08:56:03 -0700_
keyword_falsekeyword_includekeyword_undefinedresolution_fixedtype_bug| by aubergineIf the include() works, then include() returns 'undefined'. If it fails, it returns 'false'.
In JS, 'undefined' type coerces to 'false' in an 'if' statement....
Could this:
return QScriptValue();
be changed to this:
return QScriptValue(true);
As that will make it a little easier for scripts to determine the outcome of an include() :)
Issue migrated from trac:3188 at 2022-04-16 08:56:03 -0700