diff --git a/doc/api/v8.md b/doc/api/v8.md index 6ce474a9baea30..c284161d423942 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