Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

fix @Emit return value to make it transparent #201

Merged
merged 1 commit into from
May 8, 2019

Conversation

DavidEspinola
Copy link
Contributor

@Emit decorator is handling the decorated function's promise but not returning it. This causes issues like not being able to get the result calling the decorated method or the prevention of a right exception propagation. One example of the latest is demonstrated in this fiddle.

Returning the promise or value we let another functions and decorators to handle it.

@kaorun343
Copy link
Owner

@DavidEspinola

Hi.

Thanks for your PR!
I agree with your opinion.
I'll merge this.

@kaorun343 kaorun343 merged commit 98c361c into kaorun343:master May 8, 2019
@next-davidespinola
Copy link

Thanks for merging! Could you release a new tagged version, please? I need this for my project

kaorun343 pushed a commit that referenced this pull request May 8, 2019
@kaorun343
Copy link
Owner

Please download the latest version v8.1.1 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants