-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable es6 prototype chain by default #5407
Conversation
test/Date/DateGetSet.js
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
405973a
to
dab3f5c
Compare
@dotnet-bot test Windows 10 ci_slow_x64_debug please |
lib/Common/ConfigFlagsList.h
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
4722ef6
to
289cdfe
Compare
289cdfe
to
82fad63
Compare
We want to enable the `-Es6PrototypeChain` flag by default to support the spec better. Most of this PR is updating test baselines. Fixes #5065
We want to enable the
-Es6PrototypeChain
flag by default to support the spec better. Most of this PR is updating test baselines.Fixes #5065