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

Objects do not have a prototype #5

Open
mattapperson opened this issue Apr 17, 2015 · 10 comments
Open

Objects do not have a prototype #5

mattapperson opened this issue Apr 17, 2015 · 10 comments

Comments

@mattapperson
Copy link

Native objects (for example the Widget in the Widget example) do not have a prototype. Not a deal breaker, but we go back to the whole "jot really JS objects" bit

@yuchi
Copy link
Member

yuchi commented Apr 17, 2015

This is way more fun than it looks!

/cc @omorandi Let’s solve it once for all.

@yuchi
Copy link
Member

yuchi commented Apr 22, 2015

Here’s the (old) related Hyperloop appcelerator/hyperloop#92
(didn’t even had to search for it, I remembered the issue number…)

@mattapperson
Copy link
Author

@yuchi that just means you need more of a life outside of programing :P

@yuchi
Copy link
Member

yuchi commented Apr 22, 2015

I have one! I’m into this ‘developing’ thing also!

@mattapperson
Copy link
Author

Hey im not complaining... if anything you need to get some more coding done so we can kick this Ti.Next thing out the door :P

@omorandi
Copy link

Keeping @yuchi's life aside, I think this can be a non-issue. The fact that in the widget example the widget object doesn't have a prototype only means that it wasn't programmed to have one.
The issue @yuchi is referring in hyperloop was in a completely different context of HL target code being generated in a (wrong) way where the prototype chain was messed up.
In other words, it's not a HAL problem if injected objects don't have a prototype. It's rather a HAL programmer's responsibility to make it so.

@mattapperson
Copy link
Author

@omorandi its not a high priority issues... but I do think it is an issue. HAL and HL should be able to support prototypes. This is an expected part of the JS language.

@omorandi
Copy link

I agree on this, but I only wanted to point out that it's not strictly a HAL issue.

@mattapperson
Copy link
Author

thats fair

@yuchi
Copy link
Member

yuchi commented Apr 22, 2015

@omorandi couldn't have said it better.

The biggest challenge is not having a working prototype, but having a sane prototype chain.

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

No branches or pull requests

3 participants