Bug 170580 - Fix and enable ChakraCore/test/es6/ES6Function_bugs.js after r215072
Summary: Fix and enable ChakraCore/test/es6/ES6Function_bugs.js after r215072
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-06 17:44 PDT by Michael Saboff
Modified: 2017-04-07 17:56 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.48 KB, patch)
2017-04-06 17:47 PDT, Michael Saboff
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2017-04-06 17:44:42 PDT
After change set r215072, ChakraCore/test/es6/ES6Function_bugs.js fails one subtest.  That subtest however appears to be wrong.

It checks that defineProperty("length") to a getter on a sealed function shouldn't throw.  JSC and V8 both throw and that behavior seems to be consistent with the ECMAScript spec.  That part of the test should be disabled.
Comment 1 Michael Saboff 2017-04-06 17:47:16 PDT
Created attachment 306449 [details]
Patch
Comment 2 JF Bastien 2017-04-07 17:37:37 PDT
Comment on attachment 306449 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=306449&action=review

r=me

> JSTests/ChakraCore/test/es6/ES6Function_bugs.js:32
> + * Verified that V8 also throws here.

Can you file a bug on test262 for this?
Comment 3 Michael Saboff 2017-04-07 17:38:20 PDT
(In reply to JF Bastien from comment #2)
> Comment on attachment 306449 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=306449&action=review
> 
> r=me
> 
> > JSTests/ChakraCore/test/es6/ES6Function_bugs.js:32
> > + * Verified that V8 also throws here.
> 
> Can you file a bug on test262 for this?

This is Chakra's own test.
Comment 4 WebKit Commit Bot 2017-04-07 17:56:27 PDT
Comment on attachment 306449 [details]
Patch

Clearing flags on attachment: 306449

Committed r215133: <http://trac.webkit.org/changeset/215133>
Comment 5 WebKit Commit Bot 2017-04-07 17:56:29 PDT
All reviewed patches have been landed.  Closing bug.