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
The problem is probably that in a regular function invocation this is left undefined. I think newer versions of V8 (i.e. ever since classes are supported) allow distinguishing between regular functions and constructors so this could me adjusted to result in a TypeError: Constructor MCrypt requires 'new' instead.
The text was updated successfully, but these errors were encountered:
So I don't want to make effort about this library because I'm working on a new repository https://github.com/tugrul/cryptian replacement of mcrypt. New library is completed and I'm going to write documentation in a free time.
This isn't a massive problem but it would be nice if this were handled more gracefully:
The problem is probably that in a regular function invocation
this
is left undefined. I think newer versions of V8 (i.e. ever since classes are supported) allow distinguishing between regular functions and constructors so this could me adjusted to result in aTypeError: Constructor MCrypt requires 'new'
instead.The text was updated successfully, but these errors were encountered: