RESOLVED FIXED126754
[JSC] Revise typed array implementations to match ECMAScript and WebGL Specification
https://bugs.webkit.org/show_bug.cgi?id=126754
Summary [JSC] Revise typed array implementations to match ECMAScript and WebGL Specif...
Brent Fulgham
Reported 2014-01-10 09:00:07 PST
The ECMAScript specification requires that 'new' be used with DataView (see https://bugs.ecmascript.org/show_bug.cgi?id=695). This was confirmed by discussion about the WebGL test suite (https://github.com/KhronosGroup/WebGL/issues/446). Our DataView implementation should not allow use as a constructor function, and should require the use of 'new'.
Attachments
Patch (6.54 KB, patch)
2014-01-10 17:02 PST, Dean Jackson
fpizlo: review+
Brent Fulgham
Comment 1 2014-01-10 09:54:47 PST
Ken Russel notes that this is true of all of the Typed Array constructors as well.
Radar WebKit Bug Importer
Comment 2 2014-01-10 09:54:58 PST
Dean Jackson
Comment 3 2014-01-10 17:02:39 PST
Dean Jackson
Comment 4 2014-01-10 17:06:20 PST
Alexey Proskuryakov
Comment 5 2014-01-10 19:53:14 PST
This change broke four JS tests: ** The following JSC stress test failures have been introduced: jsc-layout-tests.yaml/js/script-tests/typedarray-constructors.js.layout jsc-layout-tests.yaml/js/script-tests/typedarray-constructors.js.layout-no-llint jsc-layout-tests.yaml/js/script-tests/typedarray-constructors.js.layout-no-cjit jsc-layout-tests.yaml/js/script-tests/typedarray-constructors.js.layout-dfg-eager-no-cjit While this is probably expected, it makes the tree red.
Alexey Proskuryakov
Comment 6 2014-01-10 19:56:07 PST
And also fast/canvas/webgl/data-view-test.html.
WebKit Commit Bot
Comment 7 2014-01-10 20:00:08 PST
Re-opened since this is blocked by bug 126803
Brent Fulgham
Comment 8 2014-01-11 17:33:04 PST
I think all of these changes are expected, and should have been part of the patch. I'll correct and re-land.
Brent Fulgham
Comment 9 2014-01-11 18:41:16 PST
Comment on attachment 220907 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220907&action=review > LayoutTests/js/script-tests/typedarray-constructors.js:7 > +shouldNotThrow("new Int8Array()"); It turns out that 'shouldNotThrow' is NOT part of "standalone-pre.js", which is what's used for the JSC stress tests.
Brent Fulgham
Comment 10 2014-01-11 18:47:27 PST
Note You need to log in before you can comment on or make changes to this bug.