Skip to content

Commit

Permalink
Add Destructuring feature (#2386)
Browse files Browse the repository at this point in the history
* Add Destructuring feature

* Update features/destructuring.yml

Co-authored-by: James Stuckey Weber <[email protected]>

---------

Co-authored-by: James Stuckey Weber <[email protected]>
  • Loading branch information
Elchi3 and jamesnw authored Dec 10, 2024
1 parent d60d4d8 commit 3c0b45a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
12 changes: 12 additions & 0 deletions features/destructuring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Destructuring
description: The destructuring assignment syntax is a JavaScript expression that unpacks values from arrays, or properties from objects, into distinct variables.
spec:
- https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-destructuring-assignment
- https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-destructuring-binding-patterns
snapshot: ecmascript-2015
group: javascript
compat_features:
- javascript.operators.destructuring
- javascript.operators.destructuring.computed_property_names
- javascript.operators.destructuring.rest_in_arrays
- javascript.operators.destructuring.rest_in_objects
68 changes: 68 additions & 0 deletions features/destructuring.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Generated from: destructuring.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "60"
chrome_android: "60"
edge: "79"
firefox: "55"
firefox_android: "55"
safari: "11.1"
safari_ios: "11.3"
compat_features:
# baseline: high
# baseline_low_date: 2016-08-02
# baseline_high_date: 2019-02-02
# support:
# chrome: "49"
# chrome_android: "49"
# edge: "14"
# firefox: "41"
# firefox_android: "41"
# safari: "8"
# safari_ios: "8"
- javascript.operators.destructuring

# baseline: high
# baseline_low_date: 2016-09-20
# baseline_high_date: 2019-03-20
# support:
# chrome: "49"
# chrome_android: "49"
# edge: "14"
# firefox: "41"
# firefox_android: "41"
# safari: "10"
# safari_ios: "10"
- javascript.operators.destructuring.computed_property_names

# baseline: high
# baseline_low_date: 2017-10-17
# baseline_high_date: 2020-04-17
# support:
# chrome: "49"
# chrome_android: "49"
# edge: "16"
# firefox: "41"
# firefox_android: "41"
# safari: "9.1"
# safari_ios: "9.3"
- javascript.operators.destructuring.rest_in_arrays

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "60"
# chrome_android: "60"
# edge: "79"
# firefox: "55"
# firefox_android: "55"
# safari: "11.1"
# safari_ios: "11.3"
- javascript.operators.destructuring.rest_in_objects

0 comments on commit 3c0b45a

Please sign in to comment.