Skip to content

Commit 111a6f5

Browse files
committed
Updated test.
1 parent e21d228 commit 111a6f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ v2.3 (2022-06-23)
55
- Added utility functions: findDeclaredNames(), findGlobalReferences(), findShadows().
66
- Added token functions: updateToken(), cloneToken().
77
- simplify() handles some more cases.
8-
- Fixed newToken("string", ...) always raising an error.
8+
- Fixed newToken("string") always raising an error.
99

1010
v2.2 (2022-06-02)
1111
- Added function: isStatement().

testsuite.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ test("Tokens", function()
311311

312312
-- Update all tokens (with no modifications).
313313
for _, tok in ipairs(tokens) do
314-
parser.updateToken(tok, tok.value)
314+
parser.updateToken(parser.cloneToken(tok), tok.value)
315315
end
316316

317317
local ast = assert(parser.parse(tokens))

0 commit comments

Comments
 (0)