diff --git a/test/language/expressions/optional-chaining/early-errors-tail-position-template-string.js b/test/language/expressions/optional-chaining/early-errors-tail-position-template-string.js index 1187520678c..fabc513a6b2 100644 --- a/test/language/expressions/optional-chaining/early-errors-tail-position-template-string.js +++ b/test/language/expressions/optional-chaining/early-errors-tail-position-template-string.js @@ -15,7 +15,7 @@ negative: $DONOTEVALUATE(); -const a = {fn: () => {}}; +const a = {fn() {}}; a?.fn `hello`; diff --git a/test/language/expressions/optional-chaining/member-expression-optional-chain.js b/test/language/expressions/optional-chaining/member-expression-optional-chain.js index 47ed28571a8..b5586cdf96d 100644 --- a/test/language/expressions/optional-chaining/member-expression-optional-chain.js +++ b/test/language/expressions/optional-chaining/member-expression-optional-chain.js @@ -17,7 +17,7 @@ const i = 0; const obj = { a: 'hello', b: {val: 13}, - c: (arg1) => { + c(arg1) { return arg1 * 2; }, arr: [11, 12]