diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-09-19 07:33:28 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-09-22 12:00:28 +0200 |
commit | 36bdd19a6b3aee18143a3d45d6eedc19a2e95189 (patch) | |
tree | a113044ac7f192fda85ea0a24708fb8e1333a6f4 /doc/api/util.md | |
parent | 1f4d4c0da87db42f97f43d8374967071fe85b37a (diff) | |
download | android-node-v8-36bdd19a6b3aee18143a3d45d6eedc19a2e95189.tar.gz android-node-v8-36bdd19a6b3aee18143a3d45d6eedc19a2e95189.tar.bz2 android-node-v8-36bdd19a6b3aee18143a3d45d6eedc19a2e95189.zip |
src: add CheckOptions to Options classes
This commit adds a CheckOptions function that the options classes can
optionally implement to check that options specified are correct
(dependencies between options are met or options that are mutually
exclusive).
In the process of doing this the error pointer passed to Parse was
changed to be of type vector so that potentially multiple options check
failures can be reported.
PR-URL: https://github.com/nodejs/node/pull/22943
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'doc/api/util.md')
0 files changed, 0 insertions, 0 deletions