diff --git a/acorn.js b/acorn.js index 64abf4bc40..c985d9e954 100644 --- a/acorn.js +++ b/acorn.js @@ -1481,6 +1481,7 @@ case _null: case _true: case _false: var node = startNode(); node.value = tokType.atomValue; + node.raw = tokType.keyword next(); return finishNode(node, "Literal"); diff --git a/index.html b/index.html index b844133476..55b77fd519 100644 --- a/index.html +++ b/index.html @@ -1094,6 +1094,7 @@ or {}.

case _null: case _true: case _false: var node = startNode(); node.value = tokType.atomValue; + node.raw = tokType.keyword next(); return finishNode(node, "Literal");