Skip to content

Commit

Permalink
Make @thenable work for static methods
Browse files Browse the repository at this point in the history
  • Loading branch information
somebee committed Jan 26, 2024
1 parent 0a9e990 commit 2a82ced
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/imba/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class Something

* Make `$dev$`, `$prod$` and `$debug$` env flags work with bundler

* Make `@thenable` work for static methods

## 2.0.0-alpha.235

* Call MyMixin.mixes(class) for every class that mixes in MyMixin (if mixes function is defined).
Expand Down
1 change: 1 addition & 0 deletions packages/imba/src/imba/decorators.imba
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export def @thenable target, key, desc

Object.defineProperty(target,'then',{
enumerable: no,
configurable: yes,
value: do(ok,err)
let that = this

Expand Down

0 comments on commit 2a82ced

Please sign in to comment.