Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
trusted-prune-outbound-object.js
scriptlet
Essentially a complement of `trusted-prune-inbound-object.js` added in 1c9da22 To perform object pruning on any object returned synchronously by any given call. The arguments for `trusted-prune-outbound-object` in order are: - The name of the property to trap. Must be a function, and must exist when the scriptlet tries to install the trap. - The properties to prune (as with `json-prune`) - The properties which must all be present for pruning to occur (as with `json-prune`) The scriptlets `json-prune.js` and `evaldata-prune.js` essentially perform the same function, and will eventually be rewritten to internally delegate to generic `trusted-prune-outbound-object.js`.
- Loading branch information