Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-5748 Android: rip out rhino commonjs as it requires compiled modules which cannot be easily debugged #578

Merged
merged 22 commits into from Oct 25, 2011

Conversation

billdawson
Copy link
Contributor

Main item:
http://jira.appcelerator.org/browse/TIMOB-5748

Testing for the main item is the failcase described in the ticket.

Then these items have been re-opened to be re-tested because they were originally done with the Rhino commonjs and need to tested with the different require() implementation:

TIMOB-5123 <-- link is directly to testing notes.

TIMOB-5434 -- test is precisely the failcase in that ticket.

Sorry for the multiple items to test/resolve, but this change really requires it.

…n context. Was accidentally executing it always in the root context."

This reverts commit 945455c.
…re it should have been in the first place. Good catch ayeung!"

This reverts commit 8746e2c.
…o that if the call to Rhino require indeed returns an object. Else just return what it gives back."

This reverts commit c5c9db2.
…sting in TiScriptRunner, make KrollContext implement ModuleScriptProvider rather than making an anonymous instance of it, to save from putting one more class into the dex."

This reverts commit adfccf3.
…s implementation so that breakpoints can be hit and so that JS modules can successfully require() native modules.
…ng slashes and that the correct ti context is used when executing a common js module.
Scriptable scope = context.newObject(jsScope);
Scriptable exports = context.newObject(scope);
scope.put("exports", scope, exports);
Log.d(LCAT, "Running CommonJS module script: " + relativePath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to info instead.

… file so that it only occurs in non-compiled mode.
@donthorp
Copy link
Contributor

Code reviewed. Request Accepted

@nataliehuynh
Copy link
Contributor

Request Accepted
Timob-5748 - Tested with Emuluator 2.3.3 and 3.0
Timob-5434 - Tested with Droid 1 2.2.2 and Emulator 2.3.3
Timob-5123 - Tested with Droid 1 2.2.2 and Emulator 2.3.3

@ayeung
Copy link
Contributor

ayeung commented Oct 25, 2011

Code reviewed and functionally tested. Request Accepted

donthorp added a commit that referenced this pull request Oct 25, 2011
TIMOB-5748 Android: rip out rhino commonjs as it requires compiled modules which cannot be easily debugged
@donthorp donthorp merged commit bd3ee19 into tidev:master Oct 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants