diff --git a/doc/api/v8.md b/doc/api/v8.md index e16e8645090713..2d76eb3a0f70f8 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -156,7 +156,7 @@ Usage: // Print GC events to stdout for one minute. const v8 = require('v8'); v8.setFlagsFromString('--trace_gc'); -setTimeout(function() { v8.setFlagsFromString('--notrace_gc'); }, 60e3); +setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); ``` ## Serialization API