Description
When a script that exports a falsey value
undefined, null, false
is required by a relative path
./foo
the module will 'fail' to be found throwing the below error
[ERROR] TiExceptionHandler: (main) [20,20] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,20] - In ti:/module.js:303,2
[ERROR] TiExceptionHandler: (main) [0,20] - Message: Uncaught Error: Requested module not found: ./foo
[ERROR] TiExceptionHandler: (main) [0,20] - Source: throw new Error('Requested module not found: ' + request); // TODO Set 'code' property to 'MODULE_NOT_FOUND' to match Node?
Steps to reproduce
1. Download the attached app
2. Build for android
Actual
The following is logged
[INFO] empty-double threw
[INFO] empty-single threw
[INFO] false threw
[INFO] nan threw
[INFO] null threw
[INFO] undefined threw
[INFO] zero threw
Expected
The following is logged
[INFO] empty-double worked
[INFO] empty-single worked
[INFO] false worked
[INFO] nan worked
[INFO] null worked
[INFO] undefined worked
[INFO] zero worked
https://github.com/appcelerator/titanium_mobile/pull/9897
Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180607210411 Other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9897