[TIMOB-9860] iOS: require ('abc/xyz') and require('/abc/xyz') get treated differently
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-16T11:04:29.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 3.0.0 |
Components | iOS |
Labels | SupportTeam, core, module_require, parity, qe-testadded |
Reporter | Varun Joshi |
Assignee | Neeraj Gupta |
Created | 2012-07-02T14:13:04.000+0000 |
Updated | 2013-07-16T11:04:29.000+0000 |
According to CommonJs specification, leading slash should not be present and it is not valid module id: http://wiki.commonjs.org/wiki/Modules/1.1 Leading slash is working on some platforms in Titanium and many people use it, but nevertheless it shouldn't work because it's against specification. So, this issue is actually invalid.
Should be resolved by pull request for TIMOB-9524.
Pull#2414 merged.
Depending on the result of commonjs compliance this fix may be removed.
Path with or without slash are not treated differently in require. Verified on: Titanium Studio: 2.1.2.201208281351 Titanium SDK: 2.2.0.v20120828153312 iOS Simulator v5.1
Reopening to update label.
Updated label. Verified with: Titanium Studio:3.1.2.201307091843 Titanium SDK: 3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device: Galaxy Nexus (v4.0.4),iphone4(v5.1) Xcode: 4.5.1 Path with or without slash are not treated differently in require.