fix(optional chaining): Optional delete returns true with nullish base (#10806)
Per issue 10805, the return value when using delete on a nullish base is currently undefined. The correct return type should be true.
This commit is contained in:
committed by
Nicolò Ribaudo
parent
3d0c5d2afc
commit
bb6cc61979
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": [
|
||||
"jsx",
|
||||
"flow"
|
||||
],
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Unexpected token, expected \"{\" (2:26)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": [
|
||||
"jsx",
|
||||
"flow"
|
||||
],
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Unexpected token (2:23)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user