RESOLVED FIXED 152574
[ES6] Date.prototype should be a plain object
https://bugs.webkit.org/show_bug.cgi?id=152574
Summary [ES6] Date.prototype should be a plain object
Andy VanWagoner
Reported 2015-12-28 07:16:00 PST
[ES6] Date.prototype should be a plain object
Attachments
Patch (8.67 KB, patch)
2015-12-28 07:19 PST, Andy VanWagoner
no flags
Patch (8.87 KB, patch)
2016-01-04 20:12 PST, Andy VanWagoner
no flags
Patch (9.78 KB, patch)
2016-01-05 18:55 PST, Andy VanWagoner
no flags
Andy VanWagoner
Comment 1 2015-12-28 07:19:25 PST
Geoffrey Garen
Comment 2 2016-01-04 15:14:06 PST
Comment on attachment 267952 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=267952&action=review You should also test Date instanceof Date. > Source/JavaScriptCore/runtime/DatePrototype.h:32 > +// ES6 20.3.4 > +// http://www.ecma-international.org/ecma-262/6.0/index.html#sec-properties-of-the-date-prototype-object > +// The Date prototype object is itself an ordinary object. It is not a Date instance and does not have a [[DateValue]] internal slot. You can leave this comment out. svn and bugzilla and test cases should suffice. We used to have a spec link for every function in the project. It was unwieldy.
Andy VanWagoner
Comment 3 2016-01-04 20:12:41 PST
WebKit Commit Bot
Comment 4 2016-01-05 13:19:40 PST
Comment on attachment 268257 [details] Patch Clearing flags on attachment: 268257 Committed r194603: <http://trac.webkit.org/changeset/194603>
WebKit Commit Bot
Comment 5 2016-01-05 13:19:43 PST
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 6 2016-01-05 13:39:48 PST
(In reply to comment #4) > Comment on attachment 268257 [details] > Patch > > Clearing flags on attachment: 268257 > > Committed r194603: <http://trac.webkit.org/changeset/194603> It broke the cloop build, please fix it ASAP.
Csaba Osztrogonác
Comment 7 2016-01-05 13:41:18 PST
(In reply to comment #6) > (In reply to comment #4) > > Comment on attachment 268257 [details] > > Patch > > > > Clearing flags on attachment: 268257 > > > > Committed r194603: <http://trac.webkit.org/changeset/194603> > > It broke the cloop build, please fix it ASAP. Ah, not build failure, but test faiure.
Ryan Haddad
Comment 8 2016-01-05 13:46:49 PST
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #4) > > > Comment on attachment 268257 [details] > > > Patch > > > > > > Clearing flags on attachment: 268257 > > > > > > Committed r194603: <http://trac.webkit.org/changeset/194603> > > > > It broke the cloop build, please fix it ASAP. > > Ah, not build failure, but test faiure. ** The following JSC stress test failures have been introduced: mozilla-tests.yaml/ecma/Date/15.9.5.js.mozilla mozilla-tests.yaml/ecma/Date/15.9.5.js.mozilla-baseline mozilla-tests.yaml/ecma/Date/15.9.5.js.mozilla-dfg-eager-no-cjit-validate-phases mozilla-tests.yaml/ecma/Date/15.9.5.js.mozilla-ftl mozilla-tests.yaml/ecma/Date/15.9.5.js.mozilla-ftl-eager-no-cjit-validate-phases mozilla-tests.yaml/ecma/Date/15.9.5.js.mozilla-llint
WebKit Commit Bot
Comment 9 2016-01-05 15:40:43 PST
Re-opened since this is blocked by bug 152762
Andy VanWagoner
Comment 11 2016-01-05 17:23:43 PST
The failed test is explicitly testing for the old behavior, where Date.prototype is a Date instance. Either the expectation should change, or the tests should be skipped.
Keith Miller
Comment 12 2016-01-05 17:35:22 PST
I believe if you put "//@ skip" at the top of the test file it should be skipped. I'm not positive for the mozilla tests, however. If you do so you should put a comment linking to this bugzilla so others know why it's skipped. If adding "//@ skip" doesn't work let me know.
Andy VanWagoner
Comment 13 2016-01-05 18:36:23 PST
(In reply to comment #12) > I believe if you put "//@ skip" at the top of the test file it should be > skipped. I'm not positive for the mozilla tests, however. If you do so you > should put a comment linking to this bugzilla so others know why it's > skipped. If adding "//@ skip" doesn't work let me know. "//@ skip" doesn't seem to work in this case. It looks like mozilla-tests.yaml can specify that it should be skipped, though. :negative, :fail, and :skip all look like valid options. Which is the most appropriate for this case?
Keith Miller
Comment 14 2016-01-05 18:44:41 PST
(In reply to comment #13) > (In reply to comment #12) > > I believe if you put "//@ skip" at the top of the test file it should be > > skipped. I'm not positive for the mozilla tests, however. If you do so you > > should put a comment linking to this bugzilla so others know why it's > > skipped. If adding "//@ skip" doesn't work let me know. > > "//@ skip" doesn't seem to work in this case. It looks like > mozilla-tests.yaml can specify that it should be skipped, though. :negative, > :fail, and :skip all look like valid options. Which is the most appropriate > for this case? Ah, I see. Looking at the run-jsc-stress-tests script, negative appears to mean there was an exit code 3 (uncaught exception) and failed means the test return the string "failed!". Based on the test logs from the bots I think you want negative.
Andy VanWagoner
Comment 15 2016-01-05 18:55:59 PST
Benjamin Poulain
Comment 16 2016-01-06 03:32:11 PST
Comment on attachment 268347 [details] Patch Let's try again!
Benjamin Poulain
Comment 17 2016-01-06 03:34:17 PST
Thanks for the help everyone.
WebKit Commit Bot
Comment 18 2016-01-06 04:17:23 PST
Comment on attachment 268347 [details] Patch Clearing flags on attachment: 268347 Committed r194636: <http://trac.webkit.org/changeset/194636>
WebKit Commit Bot
Comment 19 2016-01-06 04:17:29 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.