Skip to content

Commit aa15a33

Browse files
authored
Split Object.hasOwn() into its own feature (#3253)
This is the newest addition to Object and is still new enough that it seems worth calling out as a standalone feature.
1 parent 0b2dc1d commit aa15a33

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

features/object-hasown.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Object.hasOwn()
2+
description: The `Object.hasOwn()` static method checks whether an object has a given property. It's a more robust alternative to the `Object.prototype.hasOwnProperty()` method.
3+
spec: https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.hasown
4+
compat_features:
5+
- javascript.builtins.Object.hasOwn

features/object-hasown.yml.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: object-hasown.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2022-03-14
7+
baseline_high_date: 2024-09-14
8+
support:
9+
chrome: "93"
10+
chrome_android: "93"
11+
edge: "93"
12+
firefox: "92"
13+
firefox_android: "92"
14+
safari: "15.4"
15+
safari_ios: "15.4"
16+
compat_features:
17+
- javascript.builtins.Object.hasOwn

features/object-object.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ compat_features:
1919
- javascript.builtins.Object.getOwnPropertyNames
2020
- javascript.builtins.Object.getOwnPropertySymbols
2121
- javascript.builtins.Object.getPrototypeOf
22-
- javascript.builtins.Object.hasOwn
2322
- javascript.builtins.Object.hasOwnProperty
2423
- javascript.builtins.Object.is
2524
- javascript.builtins.Object.isExtensible

features/object-object.yml.dist

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,3 @@ compat_features:
291291
# safari: "13.1"
292292
# safari_ios: "13.4"
293293
- javascript.operators.optional_chaining
294-
295-
# baseline: high
296-
# baseline_low_date: 2022-03-14
297-
# baseline_high_date: 2024-09-14
298-
# support:
299-
# chrome: "93"
300-
# chrome_android: "93"
301-
# edge: "93"
302-
# firefox: "92"
303-
# firefox_android: "92"
304-
# safari: "15.4"
305-
# safari_ios: "15.4"
306-
- javascript.builtins.Object.hasOwn

0 commit comments

Comments
 (0)