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:
Alex Lewis
2019-12-04 06:56:25 -05:00
committed by Nicolò Ribaudo
parent 3d0c5d2afc
commit bb6cc61979
6 changed files with 15 additions and 19 deletions

View File

@@ -1,8 +1,5 @@
{
"sourceType": "module",
"plugins": [
"jsx",
"flow"
],
"plugins": ["jsx", "flow"],
"throws": "Unexpected token, expected \"{\" (2:26)"
}
}

View File

@@ -1,8 +1,5 @@
{
"sourceType": "module",
"plugins": [
"jsx",
"flow"
],
"plugins": ["jsx", "flow"],
"throws": "Unexpected token (2:23)"
}
}