Bug 155807 - [ES6] Add Proxy based tests for RegExp.prototype[@@match]
Summary: [ES6] Add Proxy based tests for RegExp.prototype[@@match]
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords: InRadar
Depends on: 155829
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-23 14:10 PDT by Michael Saboff
Modified: 2016-03-24 09:13 PDT (History)
5 users (show)

See Also:


Attachments
Patch (7.58 KB, patch)
2016-03-24 07:34 PDT, Michael Saboff
no flags Details | Formatted Diff | Diff
Updated Patch - Removed Tabs (7.59 KB, patch)
2016-03-24 07:42 PDT, Michael Saboff
saam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2016-03-23 14:10:57 PDT
In <https://bugs.webkit.org/show_bug.cgi?id=155711> after change set r198554 was landed, it was suggested that we add more Proxy based tests to verify standards conformance.  This would include handling the semantics issue raise in this comment:

> > Source/JavaScriptCore/builtins/RegExpPrototype.js:59
> > +    if (regexp.exec !== @RegExp.prototype.@exec && typeof(regexp.exec) === "function") {
> Also, I'm not sure this is correct. You're calling "get" twice here. That is
> an observable
> operation. It looks like RegExpExec only does this get once in the spec.
Comment 1 Radar WebKit Bug Importer 2016-03-23 21:23:24 PDT
<rdar://problem/25331854>
Comment 2 Michael Saboff 2016-03-24 07:34:04 PDT
Created attachment 274831 [details]
Patch
Comment 3 WebKit Commit Bot 2016-03-24 07:36:41 PDT
Attachment 274831 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/tests/stress/regexp-match-proxy.js:102:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/JavaScriptCore/tests/stress/regexp-match-proxy.js:137:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Michael Saboff 2016-03-24 07:42:16 PDT
Created attachment 274832 [details]
Updated Patch - Removed Tabs
Comment 5 Saam Barati 2016-03-24 08:41:08 PDT
Comment on attachment 274832 [details]
Updated Patch - Removed Tabs

r=me
Does es6.yaml also need to be updated?
Comment 6 Michael Saboff 2016-03-24 09:13:23 PDT
(In reply to comment #5)
> Comment on attachment 274832 [details]
> Updated Patch - Removed Tabs
> 
> r=me
> Does es6.yaml also need to be updated?

Yes it does, so I'll do it before landing.
Comment 7 Michael Saboff 2016-03-24 09:13:45 PDT
Committed r198625: <http://trac.webkit.org/changeset/198625>