Bug 142937 - [ES6] Object type restrictions on a first parameter of several Object.* functions are relaxed
Summary: [ES6] Object type restrictions on a first parameter of several Object.* funct...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-21 06:18 PDT by Yusuke Suzuki
Modified: 2015-03-31 10:46 PDT (History)
2 users (show)

See Also:


Attachments
Patch (27.58 KB, patch)
2015-03-30 05:06 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2015-03-21 06:18:59 PDT
After ES6, several Object methods (like Object.freeze) coerce the argument to Object by using ToObject instead of checking isObject and raising TypeError.
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-additions-and-changes-that-introduce-incompatibilities-with-prior-editions
Comment 1 Yusuke Suzuki 2015-03-30 05:06:12 PDT
Created attachment 249720 [details]
Patch
Comment 2 WebKit Commit Bot 2015-03-31 10:45:25 PDT
Comment on attachment 249720 [details]
Patch

Clearing flags on attachment: 249720

Committed r182189: <http://trac.webkit.org/changeset/182189>
Comment 3 WebKit Commit Bot 2015-03-31 10:45:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Yusuke Suzuki 2015-03-31 10:46:35 PDT
Landed. thank you for your review :D