test262: Failure with RegExp.prototype.compile when pattern is undefined regexp.compile(undefined) should be the same as regexp.compile("") Currently we treat it like regexp.compile("undefined") > esid: sec-regexp.prototype.compile > es6id: B.2.5.1 > description: Behavior when pattern is undefined > info: | > [...] > 3. If Type(pattern) is Object and pattern has a [[RegExpMatcher]] internal > slot, then > [...] > 4. Else, > a. Let P be pattern. > b. Let F be flags. > 5. Return ? RegExpInitialize(O, P, F). > > 21.2.3.2.2 Runtime Semantics: RegExpInitialize > > 1. If pattern is undefined, let P be the empty String. > [...]
Created attachment 291585 [details] [PATCH] Proposed Fix
Comment on attachment 291585 [details] [PATCH] Proposed Fix r=me
Comment on attachment 291585 [details] [PATCH] Proposed Fix Clearing flags on attachment: 291585 Committed r207334: <http://trac.webkit.org/changeset/207334>
All reviewed patches have been landed. Closing bug.