@xnoxs/flux-lang 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
File without changes
File without changes
package/src/self/jsx.flux CHANGED
File without changes
@@ -345,7 +345,7 @@ export class Lexer:
345
345
  if word == '_' and not /[a-zA-Z0-9_]/.test(self.ch()):
346
346
  self.tok(T.WILDCARD, '_', l, c)
347
347
  continue
348
- val kw = KEYWORDS[word]
348
+ val kw = Object.prototype.hasOwnProperty.call(KEYWORDS, word) ? KEYWORDS[word] : undefined
349
349
  if kw == '__TRUE__': self.tok(T.BOOL, true, l, c)
350
350
  else if kw == '__FALSE__': self.tok(T.BOOL, false, l, c)
351
351
  else if kw == '__NULL__': self.tok(T.NULL, null, l, c)