Bug 158231 - REGRESSION(r200694): %ThrowTypeError% is not unique
Summary: REGRESSION(r200694): %ThrowTypeError% is not unique
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:
Blocks:
 
Reported: 2016-05-31 13:34 PDT by Michael Saboff
Modified: 2016-06-02 15:00 PDT (History)
9 users (show)

See Also:


Attachments
Patch (40.61 KB, patch)
2016-06-02 12:24 PDT, Michael Saboff
joepeck: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-yosemite (730.08 KB, application/zip)
2016-06-02 13:25 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (808.69 KB, application/zip)
2016-06-02 13:28 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-yosemite (1.43 MB, application/zip)
2016-06-02 13:34 PDT, Build Bot
no flags Details
Updated patch from comments and rebased failing inspector test (43.38 KB, patch)
2016-06-02 13:53 PDT, Michael Saboff
joepeck: 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-05-31 13:34:06 PDT
Section 9.2.7.1 in the ES spec states that there should be one %ThrowTypeError% intrinsic for each realm.  The tests at https://rawgit.com/tvcutsem/es-lab/master/src/ses/contract.html check for this and fail after <http://trac.webkit.org/changeset/200694>.
Comment 1 Joseph Pecoraro 2016-05-31 13:36:46 PDT
Hmm, we can roll out r200694 if this really affects a page. Wouldn't this have existed prior to this change though?
Comment 2 Radar WebKit Bug Importer 2016-05-31 13:38:07 PDT
<rdar://problem/26560709>
Comment 3 Radar WebKit Bug Importer 2016-05-31 13:40:28 PDT
<rdar://problem/26560739>
Comment 4 Michael Saboff 2016-06-02 12:24:31 PDT
Created attachment 280347 [details]
Patch
Comment 5 Joseph Pecoraro 2016-06-02 12:48:04 PDT
Comment on attachment 280347 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=280347&action=review

r=me

> Source/JavaScriptCore/runtime/JSFunction.cpp:322
>  static GetterSetter* getThrowTypeErrorGetterSetter(JSFunction* function)

I think you can just remove this function now, replacing the two remaining calls:

378:  GetterSetter* errorGetterSetter = getThrowTypeErrorGetterSetter(thisObject);
393:  GetterSetter* errorGetterSetter = getThrowTypeErrorGetterSetter(thisObject);

> Source/JavaScriptCore/runtime/JSGlobalObject.h:491
> +    GetterSetter* throwTypeErrorArgumentsCalleeAndCallerGetterSetter()

The one line looks way nicer ;)

> Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:787
> +    return throwVMTypeError(exec, "'arguments', 'callee' and 'caller' cannot be accessed in strict mode.");

I think we normally use the Oxford comma, so here a comma before "and". Up to you.

> LayoutTests/js/script-tests/throw-type-error-is-unique.js:25
> +                    testFailed(this.context + " " + accessorType +"ter for \"" + name + "\" is not the same %ThrowTypeError% intrinsic");

Style: weird spacing in here you might want to cleanup.
Comment 6 Build Bot 2016-06-02 13:25:29 PDT
Comment on attachment 280347 [details]
Patch

Attachment 280347 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1424607

New failing tests:
inspector/runtime/getProperties.html
Comment 7 Build Bot 2016-06-02 13:25:33 PDT
Created attachment 280355 [details]
Archive of layout-test-results from ews101 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-06-02 13:28:11 PDT
Comment on attachment 280347 [details]
Patch

Attachment 280347 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1424611

New failing tests:
inspector/runtime/getProperties.html
Comment 9 Build Bot 2016-06-02 13:28:15 PDT
Created attachment 280356 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 10 Build Bot 2016-06-02 13:34:06 PDT
Comment on attachment 280347 [details]
Patch

Attachment 280347 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1424617

New failing tests:
inspector/runtime/getProperties.html
Comment 11 Build Bot 2016-06-02 13:34:09 PDT
Created attachment 280358 [details]
Archive of layout-test-results from ews114 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 12 Michael Saboff 2016-06-02 13:53:19 PDT
Created attachment 280363 [details]
Updated patch from comments and rebased failing inspector test
Comment 13 WebKit Commit Bot 2016-06-02 13:56:12 PDT
Attachment 280363 [details] did not pass style-queue:


ERROR: LayoutTests/ChangeLog:11:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
Total errors found: 1 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 14 Joseph Pecoraro 2016-06-02 13:58:44 PDT
Comment on attachment 280363 [details]
Updated patch from comments and rebased failing inspector test

r=me
Comment 15 Michael Saboff 2016-06-02 15:00:30 PDT
Committed r201619: <http://trac.webkit.org/changeset/201619>