mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
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:
parent
04b1d2254b
commit
6d4d69f19f
@ -22,7 +22,7 @@ const obj = {
|
|||||||
}
|
}
|
||||||
assert.sameValue(33, fn()?.a);
|
assert.sameValue(33, fn()?.a);
|
||||||
assert.sameValue(undefined, fn()?.b);
|
assert.sameValue(undefined, fn()?.b);
|
||||||
assert.sameValue(44, obj.fn());
|
assert.sameValue(44, obj?.fn());
|
||||||
|
|
||||||
// CallExpression SuperCall
|
// CallExpression SuperCall
|
||||||
class A {}
|
class A {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user