Skip to content

Commit

Permalink
fix object literals with null value #264
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 14, 2024
1 parent e8bb82a commit 5447d14
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* fix resolving promises inside quoted promise realm
* fix undocumented symbol syntax extensions
* fix odd? even? on non integers
* fix object literals with null value [#264](https://github.com/jcubic/lips/issues/264)

## 1.0.0-beta.17
### Breaking
Expand Down
2 changes: 1 addition & 1 deletion dist/std.min.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/std.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/std.xcb
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/bootstrap.scm
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
" is not a symbol!")))
(throw msg))
(let ((prop (key->string first)))
(if (or (key? second) (null? second))
(if (key? second)
(let ((code `(set-obj! ,name ,prop undefined)))
(loop (cdr lst) (cons code result)))
(let ((code (if readonly
Expand Down

0 comments on commit 5447d14

Please sign in to comment.