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

Enable es6 prototype chain by default #5407

Merged
merged 2 commits into from
Sep 11, 2018

Conversation

MSLaguana
Copy link
Contributor

@MSLaguana MSLaguana commented Jul 2, 2018

We want to enable the -Es6PrototypeChain flag by default to support the spec better. Most of this PR is updating test baselines.

Fixes #5065

@@ -182,15 +182,3 @@ WScript.Echo("valueOf : " + d.valueOf())

WScript.Echo("toISOString method : " + typeof d.toISOString);
WScript.Echo("toJSON method : " + typeof d.toJSON);

// Set fullYear/fullYear+month/year on the Date prototype
Date.prototype.setYear(5); // Year
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is explicitly not supported in es6; Date.prototype is no longer a Date so you can't set its year.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Rather than removing all of the cases, could you make them assert_fails instead?

@MSLaguana MSLaguana force-pushed the enableEs6PrototypeChain branch from 405973a to dab3f5c Compare July 2, 2018 18:41
@MSLaguana
Copy link
Contributor Author

@dotnet-bot test Windows 10 ci_slow_x64_debug please

@@ -626,12 +626,16 @@ PHASE(All)
#define DEFAULT_CONFIG_ES6String (true)
#define DEFAULT_CONFIG_ES6StringPrototypeFixes (true)
#define DEFAULT_CONFIG_ES2018ObjectSpread (false)

#ifndef DEFAULT_CONFIG_ES6PrototypeChain
#ifdef COMPILE_DISABLE_ES6PrototypeChain
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can get rid of this COMPILE_DISABLE* for this one as this is enabled now.

Copy link
Contributor

@dilijev dilijev left a comment

Choose a reason for hiding this comment

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

I approve of this modulo compat and perf coverage before shipping. Note: there will be many more baseline updates necessary once nightlies picks up this change. You could probably give it a go in a private run assuming OS compat.

@MSLaguana MSLaguana force-pushed the enableEs6PrototypeChain branch 2 times, most recently from 4722ef6 to 289cdfe Compare July 5, 2018 17:24
@MSLaguana MSLaguana force-pushed the enableEs6PrototypeChain branch from 289cdfe to 82fad63 Compare September 10, 2018 22:27
@chakrabot chakrabot merged commit 82fad63 into chakra-core:master Sep 11, 2018
chakrabot pushed a commit that referenced this pull request Sep 11, 2018
We want to enable the `-Es6PrototypeChain` flag by default to support the spec better. Most of this PR is updating test baselines.

Fixes #5065
@MSLaguana MSLaguana deleted the enableEs6PrototypeChain branch September 11, 2018 15:50
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.

7 participants