Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
fix special index error from Nim compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Dec 1, 2020
1 parent ff0c224 commit 52d0c40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calcit_runner/loader.nim
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ proc extractNsInfo*(exprNode: CirruData): Table[string, ImportInfo] =
if requireArea.kind != crDataList:
raiseEvalError("Expects require list in ns form", exprNode)
let requireNode = requireArea[0]
if not requireNode.isKeyword or requireNode.keywordVal[] != "require":
let nodeText = requireNode.keywordVal[]
if not requireNode.isKeyword or nodeText != "require":
raiseEvalError("Expects :require", requireNode)
let requireList = requireArea[1..^1]

Expand Down

0 comments on commit 52d0c40

Please sign in to comment.