From fa4b6cd689463e9e87022f26088859e2a04f6712 Mon Sep 17 00:00:00 2001 From: narirou Date: Sun, 26 Nov 2017 17:28:21 +0900 Subject: [PATCH] doc: Replace function with arrow function in vm.md --- doc/api/vm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index 001e7b0a2387ff..5b47d3872c3207 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -444,7 +444,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) => {