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
This commit is contained in:
Tomas Echeverri Valencia 2020-01-24 20:22:34 +01:00 committed by Leo Balter
parent 04b1d2254b
commit 6d4d69f19f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {}