Skip to content

Commit

Permalink
fix silent error when class don't have parent #272
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 19, 2024
1 parent 328a419 commit 5868e64
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* fix reading local files in browser [#276](https://github.com/jcubic/lips/issues/276)
* fix parsing invalid expression `(1 . 2 3)` [#245](https://github.com/jcubic/lips/issues/245)
* fix invalid error message for not matched `syntax-rules` [#243](https://github.com/jcubic/lips/issues/243)
* fix silent error when class don't have parent [#272](https://github.com/jcubic/lips/issues/272)

## 1.0.0-beta.17
### Breaking
Expand Down
1 change: 1 addition & 0 deletions dist/std.min.scm

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

8 changes: 8 additions & 0 deletions 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.
8 changes: 8 additions & 0 deletions lib/bootstrap.scm
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,14 @@
(car expr)
(list 'quote expr)))

;; -----------------------------------------------------------------------------
(define (constructor)
"(constructor)

Function that is present in JavaScript environment. We define it in Scheme
to fix an issue with define-class. This function throw an error."
(throw (new Error "Invalid call to constructor function")))

;; -----------------------------------------------------------------------------
(define-macro (define-class name parent . body)
"(define-class name parent . body)
Expand Down

0 comments on commit 5868e64

Please sign in to comment.