Bug 35848 - Remove inconsistent "Too few arguments" handling for window.atob() and window.btoa()
Summary: Remove inconsistent "Too few arguments" handling for window.atob() and window...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-07 17:16 PST by Sam Weinig
Modified: 2010-03-07 17:27 PST (History)
0 users

See Also:


Attachments
patch (6.92 KB, patch)
2010-03-07 17:19 PST, Sam Weinig
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2010-03-07 17:16:10 PST
window.atob() and window.btoa() throw on too few arguments being passed which is inconsistent and unnecessary. We should convert it treat arguments not passed as undefined like we do for almost all other functions.
Comment 1 Sam Weinig 2010-03-07 17:19:22 PST
Created attachment 50181 [details]
patch
Comment 2 mitz 2010-03-07 17:22:33 PST
Comment on attachment 50181 [details]
patch

> +>>>>>>> .r55629

I was instructed to ignore this, so r=me
Comment 3 Sam Weinig 2010-03-07 17:27:11 PST
Landed in r55637.