You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior
Method decorated with @measure returns nothing. Haven't tested with other decorators.
Expected behavior
Returned value does not change
Minimal reproduction of the problem with instructions
descriptor.value=function(...args){conststart=performance.now();originalMethod.apply(this,args);constend=performance.now();console.log(`Call to ${propertyKey} took ${(end-start).toFixed(2)} milliseconds.`);};
It should be:
descriptor.value=function(...args){conststart=performance.now();constresult=originalMethod.apply(this,args);constend=performance.now();console.log(`Call to ${propertyKey} took ${(end-start).toFixed(2)} milliseconds.`);returnresult;};
I'm submitting a...
Current behavior
Method decorated with
@measure
returns nothing. Haven't tested with other decorators.Expected behavior
Returned value does not change
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/typescript-okyls9
The text was updated successfully, but these errors were encountered: