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-9665 Blackberry: fix property enumeration on JS object created by ... #124

Merged
merged 1 commit into from Aug 7, 2012

Conversation

jpl-mac
Copy link

@jpl-mac jpl-mac commented Aug 2, 2012

...the framework

Reviewer: DC

The lookup of inherited methods such as toString() was broken for Ti instances that we create, resulting in a crash.
The cause is that by returning undefined in the lookup the V8 internal lookup was not invoked.

Changelog:

  • Return an empty value handle when not finding a keyword in our framework
  • Protect the TiUIBase initializeTiObject so that it can be called from derived classes without negative effects.
  • Reverted the calls from derived classes to call in their direct parent

Tests:
Built for simulator, verified that passing a Ti object to a function that expects a string, ends up invoking the toString on the object and it doesn't crash the JS anymore.
=> verified that the event callbacks are not broken by the change
=> Using breakpoints, verified that the prop_setter function is still getting called with the change

…by the framework

Reviewer: DC

The lookup of inherited methods such as toString() was broken for Ti instances that we create, resulting in a crash.
The cause is that by returning undefined in the lookup the V8 internal lookup was not invoked.

Changelog:
- Return an empty value handle when not finding a keyword in our framework
- Protect the TiUIBase initializeTiObject so that it can be called from derived classes without negative effects.
- Reverted the calls from derived classes to call in their direct parent

Tests:
Built for simulator, verified that passing a Ti object to a function that expects a string, ends up invoking the toString on the object and it doesn't crash the JS anymore.
=> verified that the event callbacks are not broken by the change
=> Using breakpoints, verified that the prop_setter function is still getting called with the change
@dcampbell-macadamian
Copy link

approved

dcampbell-macadamian added a commit that referenced this pull request Aug 7, 2012
TIMOB-9665 Blackberry: fix property enumeration on JS object created by ...
@dcampbell-macadamian dcampbell-macadamian merged commit 26a7ec8 into Macadamian:blackberry Aug 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants