conditionals with no alternative now evaluate to 'undefined' instead of 'null'

This commit is contained in:
Jeremy Ashkenas
2010-10-01 20:52:23 -04:00
parent 4fd878447e
commit 26de26f88f
10 changed files with 32 additions and 31 deletions

View File

@@ -294,7 +294,7 @@
}
this.i += value.length;
prev = last(this.tokens);
spaced = ((prev != null) ? prev.spaced : null);
spaced = ((prev != null) ? prev.spaced : undefined);
tag = value;
if (value === '=') {
if (include(JS_FORBIDDEN, val = this.value())) {