Titanium JIRA Archive
Appcelerator Community (AC)

[AC-675] Commonjs modules are overwriting module.exports.id property

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2016-02-29T18:26:18.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios, require
ReporterBrenton House
AssigneeShak Hossain
Created2016-02-28T18:16:43.000+0000
Updated2016-02-29T18:26:18.000+0000

Description

{color:red}*Issue AC-638 was closed before being addressed or fixed. *{color} According to the commonjs spec, module.id and module.uri property should be set but not module.exports.id and module.exports.uri. The id property from module is leaking into module.exports.
var x = require("some_commonjs_module");
x.id exists and shouldn't...

Comments

  1. Sharif AbuDarda 2016-02-29

JSON Source