node
node copied to clipboard
lib: add validation for options in compileFunction
This PR adds a validation step for the options parameter in the compileFunction method within lib/vm.js. The validateObject function is used to ensure that options is an object, aligning with the validation approach used in other functions like measureMemory in lib/vm.js.