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
Describe the bug
If you try to use CASL extra function packRules with an primitive that is not expected like: [{}] it never throws and consumes all you CPU, might get into a infinite loop or something but it never throws or finishes.
To Reproduce
Just instantiate the CASL extra and call packRules with an object array like : [{}]
Expected behavior
Should throw or finish executing since the data is not workable for the packRules function
Describe the bug
If you try to use CASL extra function packRules with an primitive that is not expected like:
[{}]
it never throws and consumes all you CPU, might get into a infinite loop or something but it never throws or finishes.To Reproduce
[{}]
Expected behavior
Should throw or finish executing since the data is not workable for the packRules function
Interactive example (optional, but highly desirable)
https://codesandbox.io/s/sleepy-worker-bq7uwc?file=/src/index.js
CASL Version
@casl/ability
- v^6.3.1Environment:
Node: 16.14.2
The text was updated successfully, but these errors were encountered: