Bug 142937

Summary: [ES6] Object type restrictions on a first parameter of several Object.* functions are relaxed
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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