let tests = {}; tests.objspread = { ...{} }; // es2018 tests.bign_syntaxt = 10n; // es2020 let undef; tests.nullish = undef ?? "foo"; // es2020 tests.logical_assign ??= true; // es2021 tests.regexp_indices = /foo/dg; // es2022 tests.regexp_unicode = /foo/v; // es2024 // class annotation below requires: // parser: @babel/eslint-parser // with babelOptions: // plugins: [["@babel/plugin-proposal-decorators", { version: "2023-11" }]], // @annotation // // eslint-disable-next-line no-unused-vars // class MyClass {} // function annotation(target) { // target.annotated = true; // }