Skip to content

Enable @@toStringTag by default - #1383

Merged
chakrabot merged 4 commits into
chakra-core:masterfrom
tcare:tostringtag
Aug 5, 2016
Merged

Enable @@toStringTag by default#1383
chakrabot merged 4 commits into
chakra-core:masterfrom
tcare:tostringtag

Conversation

@tcare

@tcare tcare commented Aug 3, 2016

Copy link
Copy Markdown
Contributor
  • Enabled @@toStringTag by default. Updated baselines.
  • Removed the legacy helpers. We only have one special case now; any external object that would have resulted in [object Object] under new rules reverts back to the class name. This retains compat with both DOM and WinRT.
  • Fixed the coverage for proxy which was outdated.
  • Fixed OS 8331493, a nightly test that was failing.

@tcare

tcare commented Aug 3, 2016

Copy link
Copy Markdown
Contributor Author

Also fixes OS 8331493, a nightly test that was failing.

@akroshg @Yongqu please review

// 17. Return the String that is the result of concatenating "[object ", tag, and "]".
if (tag != nullptr && JavascriptString::Is(tag))
{
auto buildToString = [&scriptContext](Var tag) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

curious what's the expected output of Object.getOwnPropertyNames(Math)? should we have Symbol.toString output as well?

@dilijev

dilijev commented Aug 3, 2016

Copy link
Copy Markdown
Contributor

Also fixes OS 8331493, a nightly test that was failing.

nit: add this text to the PR description so it will be automatically included in the merge commit description.

@akroshg

akroshg commented Aug 3, 2016

Copy link
Copy Markdown
Contributor

Looks good to me - it would be be good to remove -tostringtag flag from the rlexe.xml (makes the xml cleaner and when we get rid of this flag completely it will be easy transition). #Resolved

@tcare

tcare commented Aug 3, 2016

Copy link
Copy Markdown
Contributor Author

Sounds good.

@Yongqu

Yongqu commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

:shipit:

@chakrabot
chakrabot merged commit 8061516 into chakra-core:master Aug 5, 2016
chakrabot pushed a commit that referenced this pull request Aug 5, 2016
Merge pull request #1383 from tcare:tostringtag

- Enabled @@toStringTag by default. Updated baselines.
- Removed the legacy helpers. We only have one special case now; any external object that would have resulted in [object Object] under new rules reverts back to the class name. This retains compat with both DOM and WinRT.
- Fixed the coverage for proxy which was outdated.
- Fixed OS 8331493, a nightly test that was failing.
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.

6 participants