Skip to content

Commit bc6fa7e

Browse files
committed
Add change log.
1 parent 1ed32dc commit bc6fa7e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ The current loaded rapidjson version. `"scm"` when not build with luarocks.
312312

313313
### 0.4.0
314314

315+
* Checks circular reference when encoding tables.
315316
* A table is encoded as json array if:
316317
- have meta field `__jsontype` set to `'array'`.
317318
- don't have meta filed `__jsontype` and length > 0.

spec/json_encode_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('rapidjson.encode()', function()
6565
)
6666
end)
6767

68-
it('should detect avoid circular reference', function()
68+
it('should detect circular reference', function()
6969
local a = {}
7070
a.b = a
7171
assert.has_error(function()

0 commit comments

Comments
 (0)