forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebIDL] Align property order of DOM constructors with ECMA-262 count…
…erparts https://bugs.webkit.org/show_bug.cgi?id=230584 Reviewed by Alex Christensen. LayoutTests/imported/w3c: This is being upstreamed at web-platform-tests/wpt#30333. * web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any-expected.txt: Added. * web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.html: Added. * web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.js: Added. * web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker-expected.txt: Added. * web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker.html: Added. Source/WebCore: This patch implements spec proposal [1] on matching property order of DOM constructors with ECMA-262 functions: "length", "name", "prototype". Aligns WebKit with Blink and Gecko. Also, groups property puts to remove 2 extra `$interface->isNamespaceObject` checks. No behavior change except for enumeration order. [1] whatwg/webidl#914 Tests: imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.html imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker.html * bindings/scripts/CodeGeneratorJS.pm: (GenerateConstructorHelperMethods): * bindings/scripts/test/JS/*: Updated. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@283233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
c9fee8e
commit e4ad0e3
Showing
89 changed files
with
258 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2021-09-29 Alexey Shvayka <[email protected]> | ||
|
||
[WebIDL] Align property order of DOM constructors with ECMA-262 counterparts | ||
https://bugs.webkit.org/show_bug.cgi?id=230584 | ||
|
||
Reviewed by Alex Christensen. | ||
|
||
This is being upstreamed at https://github.com/web-platform-tests/wpt/pull/30333. | ||
|
||
* web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any-expected.txt: Added. | ||
* web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.html: Added. | ||
* web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.js: Added. | ||
* web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker-expected.txt: Added. | ||
* web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker.html: Added. | ||
|
||
2021-09-29 Aditya Keerthi <[email protected]> | ||
|
||
Update css-ui WPT | ||
|
5 changes: 5 additions & 0 deletions
5
...web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
PASS Constructor property enumeration order of "length", "name", and "prototype" | ||
PASS Method property enumeration order of "length" and "name" | ||
PASS Getter property enumeration order of "length" and "name" | ||
|
1 change: 1 addition & 0 deletions
1
...ted/w3c/web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- This file is required for WebKit test infrastructure to run the templated test --> |
23 changes: 23 additions & 0 deletions
23
...orted/w3c/web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"use strict"; | ||
|
||
test(() => { | ||
const ownPropKeys = Reflect.ownKeys(Blob).slice(0, 3); | ||
assert_array_equals(ownPropKeys, ["length", "name", "prototype"]); | ||
}, 'Constructor property enumeration order of "length", "name", and "prototype"'); | ||
|
||
test(() => { | ||
assert_own_property(Blob.prototype, "slice"); | ||
|
||
const ownPropKeys = Reflect.ownKeys(Blob.prototype.slice).slice(0, 2); | ||
assert_array_equals(ownPropKeys, ["length", "name"]); | ||
}, 'Method property enumeration order of "length" and "name"'); | ||
|
||
test(() => { | ||
assert_own_property(Blob.prototype, "size"); | ||
|
||
const desc = Reflect.getOwnPropertyDescriptor(Blob.prototype, "size"); | ||
assert_equals(typeof desc.get, "function"); | ||
|
||
const ownPropKeys = Reflect.ownKeys(desc.get).slice(0, 2); | ||
assert_array_equals(ownPropKeys, ["length", "name"]); | ||
}, 'Getter property enumeration order of "length" and "name"'); |
5 changes: 5 additions & 0 deletions
5
...tform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
PASS Constructor property enumeration order of "length", "name", and "prototype" | ||
PASS Method property enumeration order of "length" and "name" | ||
PASS Getter property enumeration order of "length" and "name" | ||
|
1 change: 1 addition & 0 deletions
1
.../web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- This file is required for WebKit test infrastructure to run the templated test --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
2021-09-29 Alexey Shvayka <[email protected]> | ||
|
||
[WebIDL] Align property order of DOM constructors with ECMA-262 counterparts | ||
https://bugs.webkit.org/show_bug.cgi?id=230584 | ||
|
||
Reviewed by Alex Christensen. | ||
|
||
This patch implements spec proposal [1] on matching property order of DOM constructors | ||
with ECMA-262 functions: "length", "name", "prototype". Aligns WebKit with Blink and Gecko. | ||
Also, groups property puts to remove 2 extra `$interface->isNamespaceObject` checks. | ||
|
||
No behavior change except for enumeration order. | ||
|
||
[1] https://github.com/heycam/webidl/pull/914 | ||
|
||
Tests: imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.html | ||
imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/builtin-function-properties.any.worker.html | ||
|
||
* bindings/scripts/CodeGeneratorJS.pm: | ||
(GenerateConstructorHelperMethods): | ||
* bindings/scripts/test/JS/*: Updated. | ||
|
||
2021-09-29 Olivier Blin <[email protected]> | ||
|
||
Fix typo in RenderSVGBlock::updateFromStyle comment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.