WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161955
test262: TypedArray constructors length should be 3 and configurable
https://bugs.webkit.org/show_bug.cgi?id=161955
Summary
test262: TypedArray constructors length should be 3 and configurable
Joseph Pecoraro
Reported
2016-09-14 02:37:29 PDT
test262: %TypedArray% constructors length should be 3 Things like: Float32Array.length Uint8ClampedArray.length Should all be 3.
Attachments
[PATCH] Proposed Fix
(13.31 KB, patch)
2016-09-14 02:39 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(13.30 KB, patch)
2016-09-14 03:02 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(18.25 KB, patch)
2016-09-14 03:19 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(28.87 KB, patch)
2016-09-14 03:54 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(29.24 KB, patch)
2016-09-14 03:55 PDT
,
Joseph Pecoraro
mark.lam
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews123 for ios-simulator-elcapitan-wk2
(9.40 MB, application/zip)
2016-09-14 04:48 PDT
,
Build Bot
no flags
Details
[PATCH] For Landing
(29.62 KB, patch)
2016-09-14 14:53 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-09-14 02:39:06 PDT
Created
attachment 288793
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 2
2016-09-14 02:53:43 PDT
Comment on
attachment 288793
[details]
[PATCH] Proposed Fix Err, this doesn't pass the test262 tests completely.
Joseph Pecoraro
Comment 3
2016-09-14 03:01:28 PDT
The property should also be configurable (deletable).
Joseph Pecoraro
Comment 4
2016-09-14 03:02:59 PDT
Created
attachment 288797
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 5
2016-09-14 03:07:36 PDT
Comment on
attachment 288797
[details]
[PATCH] Proposed Fix And now this doesn't pass some of our layout tests that expected 0.
Joseph Pecoraro
Comment 6
2016-09-14 03:19:34 PDT
Created
attachment 288800
[details]
[PATCH] Proposed Fix This magically fixes DataView.length as well.
Joseph Pecoraro
Comment 7
2016-09-14 03:54:05 PDT
Created
attachment 288801
[details]
[PATCH] Proposed Fix Even more random LayoutTests.
Joseph Pecoraro
Comment 8
2016-09-14 03:55:10 PDT
Created
attachment 288802
[details]
[PATCH] Proposed Fix
Build Bot
Comment 9
2016-09-14 04:48:17 PDT
Comment on
attachment 288802
[details]
[PATCH] Proposed Fix
Attachment 288802
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/2071585
New failing tests: js/dom/constructor-length.html
Build Bot
Comment 10
2016-09-14 04:48:20 PDT
Created
attachment 288805
[details]
Archive of layout-test-results from ews123 for ios-simulator-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-elcapitan-wk2 Platform: Mac OS X 10.11.6
Mark Lam
Comment 11
2016-09-14 09:42:38 PDT
Comment on
attachment 288802
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=288802&action=review
Please also look into the ios-sim failure. It seems to be related. I'll r+ if I can find the spec that says that the length prop should be configurable.
> Source/JavaScriptCore/ChangeLog:7 > + test262: TypedArray constructors length should be 3 > +
https://bugs.webkit.org/show_bug.cgi?id=161955
> + > + Reviewed by NOBODY (OOPS!). > +
Can you quote the spec url here that says the length should be 3: See:
https://tc39.github.io/ecma262/#sec-typedarray-constructors
I'm still looking for the spec that says that the "length" property should be configurable.
Joseph Pecoraro
Comment 12
2016-09-14 09:56:46 PDT
Take a look at the test262 test contents. It mentions the exact part of the spec, here it is completely non obvious sine it is "if not otherwise mentioned". I'd link you but I'm on my phone!
Mark Lam
Comment 13
2016-09-14 10:03:17 PDT
Comment on
attachment 288802
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=288802&action=review
r=me if ios-sim failures are resolved.
>> Source/JavaScriptCore/ChangeLog:7 >> + > > Can you quote the spec url here that says the length should be 3: > See:
https://tc39.github.io/ecma262/#sec-typedarray-constructors
> > I'm still looking for the spec that says that the "length" property should be configurable.
Thanks for the tip to look in the test262 test file. Here's the relevant spec:
https://tc39.github.io/ecma262/#sec-ecmascript-standard-built-in-objects
"Unless otherwise specified, the length property of a built-in Function object has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }." Please add these spec details into the ChangeLog. Thanks.
Joseph Pecoraro
Comment 14
2016-09-14 14:53:47 PDT
Created
attachment 288867
[details]
[PATCH] For Landing Yep, I hand modified the expectations for ports and missed the Float*Arrays in a few of them. Updated the ChangeLog.
WebKit Commit Bot
Comment 15
2016-09-14 15:29:27 PDT
Comment on
attachment 288867
[details]
[PATCH] For Landing Clearing flags on attachment: 288867 Committed
r205932
: <
http://trac.webkit.org/changeset/205932
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug