From 6d4d69f19fcb3c885fe64b344e4cc01ce667e6d9 Mon Sep 17 00:00:00 2001 From: Tomas Echeverri Valencia Date: Fri, 24 Jan 2020 20:22:34 +0100 Subject: [PATCH] Add missing `?` in unit test (#2477) The question mark is required as it is part of the "optional chaining operator" `?.` that's being tested here --- test/language/expressions/optional-chaining/call-expression.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/language/expressions/optional-chaining/call-expression.js b/test/language/expressions/optional-chaining/call-expression.js index b23e2b34ac..4cc1a73fcd 100644 --- a/test/language/expressions/optional-chaining/call-expression.js +++ b/test/language/expressions/optional-chaining/call-expression.js @@ -22,7 +22,7 @@ const obj = { } assert.sameValue(33, fn()?.a); assert.sameValue(undefined, fn()?.b); -assert.sameValue(44, obj.fn()); +assert.sameValue(44, obj?.fn()); // CallExpression SuperCall class A {}