Bug 175307 - GetOwnProperty of TypedArray indexed fields is wrongly configurable
Summary: GetOwnProperty of TypedArray indexed fields is wrongly configurable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Trivial
Assignee: Robin Morisset
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-07 17:01 PDT by Robin Morisset
Modified: 2017-08-07 19:30 PDT (History)
8 users (show)

See Also:


Attachments
Patch (3.35 KB, patch)
2017-08-07 17:16 PDT, Robin Morisset
no flags Details | Formatted Diff | Diff
Patch without the tab character (3.35 KB, patch)
2017-08-07 17:21 PDT, Robin Morisset
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 2017-08-07 17:01:37 PDT
```
let a = new Uint8TypedArray(10);
let b = Object.getOwnPropertyDescriptor(a, 0);
assert(b.configurable === false);
```
should not fail: by section 9.4.5.1 (https://tc39.github.io/ecma262/#sec-integer-indexed-exotic-objects-getownproperty-p) that applies to integer indexed exotic objects, and section 22.2.7 (https://tc39.github.io/ecma262/#sec-properties-of-typedarray-instances) that says that typed arrays are integer indexed exotic objects.
Comment 1 Robin Morisset 2017-08-07 17:16:41 PDT
Created attachment 317516 [details]
Patch
Comment 2 Build Bot 2017-08-07 17:19:43 PDT
Attachment 317516 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/ChangeLog:7:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Robin Morisset 2017-08-07 17:21:27 PDT
Created attachment 317518 [details]
Patch without the tab character
Comment 4 Saam Barati 2017-08-07 17:45:10 PDT
r=me
Comment 5 WebKit Commit Bot 2017-08-07 19:29:46 PDT
Comment on attachment 317518 [details]
Patch without the tab character

Clearing flags on attachment: 317518

Committed r220377: <http://trac.webkit.org/changeset/220377>
Comment 6 WebKit Commit Bot 2017-08-07 19:29:47 PDT
All reviewed patches have been landed.  Closing bug.