diff --git a/doc/api/vm.md b/doc/api/vm.md index 4d4b7c9e2c87b6..9918a2bd568a31 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -469,7 +469,7 @@ to the `http` module passed to it. For instance: const vm = require('vm'); const code = ` -(function(require) { +((require) => { const http = require('http'); http.createServer((request, response) => {