Skip to content

Commit 01f18a7

Browse files
Remove Nashorn-specific comment
I couldn't reproduce a case of Nashorn returning null for a non-existent property, of either a Java object or a JavaScript object, even going back to Java 8u20. But the test makes sense in any case, so I just removed the mention of Nashorn.
1 parent 0ffa1fd commit 01f18a7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/js/lib/tabcomplete.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,7 @@ var onTabCompleteJS = function() {
183183
symbol = null;
184184
break;
185185
}
186-
if (typeof symbol == 'undefined') {
187-
break;
188-
}
189-
// nashorn - object[missingProperty] returns null not undefined
190-
if (symbol == null) {
186+
if (typeof symbol == 'undefined' || symbol === null) {
191187
break;
192188
}
193189
lastGoodSymbol = symbol;

0 commit comments

Comments
 (0)