-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(marshal): reject getters in pass-by-ref, even if it returns a fun…
…ction (#2438) The prohibit-accessors check was improved by using `!('get' in descs[key])`. This should catch properties with a setter but not a getter, which will have a descriptor with `get: undefined`. Although this happens to be caught elsewhere, (because such a property reads as a non-function, triggering the "cannot serialize objects with non-methods" clause. closes #2436
- Loading branch information
Showing
2 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters