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

#1521 define map properties in the same order they're defined #1526

Merged
merged 2 commits into from Mar 20, 2015

Conversation

moschel
Copy link
Contributor

@moschel moschel commented Mar 17, 2015

fixes #1521 by enforcing define property ordering

@justinbmeyer and I discussed this afternoon and the root cause was calling the getter for a property that references a default value, but it hadn't been set yet, even though it is before the getter in the property list.

@daffl
Copy link
Contributor

daffl commented Mar 17, 2015

It looks like some tests (AMD, distributables) are failing legitimately. I am also not sure if this is the right fix. The order of keys in objects is not determined and not necessarily the same as it was defined. #1521 is a a regression so it must have been introduced somewhere else.

@justinbmeyer
Copy link
Contributor

In practice and in all commonly used versions of JS order is preserved.

Sent from my iPhone

On Mar 17, 2015, at 9:17 AM, David Luecke notifications@github.com wrote:

It looks like some tests (AMD, distributables) are failing legitimately. I am also not sure if this is the right fix. The order of keys in objects is not determined and not necessarily the same as it was defined. #1521 is a a regression so it must have been introduced somewhere else.


Reply to this email directly or view it on GitHub.

@moschel
Copy link
Contributor Author

moschel commented Mar 18, 2015

This is still failing but I'm not sure why, the travis logs don't say which tests failed

@justinbmeyer
Copy link
Contributor

It's possible Travis / phantom does not respect order?

Sent from my iPhone

On Mar 17, 2015, at 9:45 PM, Brian Moschel notifications@github.com wrote:

This is still failing but I'm not sure why, the travis logs don't say which tests failed


Reply to this email directly or view it on GitHub.

@daffl
Copy link
Contributor

daffl commented Mar 20, 2015

The reasons for the tests failing is that the attributes plugin does not play very well with define. I made the test conditional since we probably will remove the old attributes plugin - or at least take it out of this repository.

daffl added a commit that referenced this pull request Mar 20, 2015
#1521 define map properties in the same order they're defined
@daffl daffl merged commit 61ebdb6 into master Mar 20, 2015
@daffl daffl deleted the sorted-define branch March 20, 2015 18:48
@daffl daffl added this to the 2.2.1 milestone Mar 24, 2015
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.

Using value and get in the same property throws errors
3 participants