[TIMOB-11505] Android: (V8 only) Using require() a second time for the same module returns undefined instead of cached module object.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-17T18:39:22.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 Core, 2012 Sprint 21 |
Components | Android |
Labels | core, qe-port, regression, triage |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2012-10-16T18:52:20.000+0000 |
Updated | 2012-12-05T18:01:48.000+0000 |
Description
Titanium Mobile 3.0.0, V8, any android version, any desktop os, any Studio version.
Add the module to the project (i.e., edit tiapp.xml
Create a project and target 3.0.0.
Put the attached module zip file in the project folder.
Add the module to the project (i.e., edit tiapp.xml section appropriately).
Make this the project's app.js:
require("ti.bertram").example();
require("ti.bertram").example();
Run the project and you'll get the runtime error that you can't call "example" of undefined.
This is a *regression* and is not present in 2.1.3. The problem does not occur when Rhino is the runtime.Attachments
File | Date | Size |
---|---|---|
ti.bertram-android-0.1.zip | 2012-10-16T19:00:28.000+0000 | 44008 |
Master PR ready: https://github.com/appcelerator/titanium_mobile/pull/3253/
3_0_X PR ready: https://github.com/appcelerator/titanium_mobile/pull/3254/
Tested with 3.0.0.20121204144658 on Droid 1 2.2.3