diff --git a/doc/api/v8.md b/doc/api/v8.md index be222bbabf6..173d0abeefc 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -9,6 +9,16 @@ const v8 = require('v8'); *Note*: The APIs and implementation are subject to change at any time. +## v8.cachedDataVersionTag() + + +Returns an integer representing a "version tag" derived from the V8 version, +command line flags and detected CPU features. This is useful for determining +whether a [`vm.Script`][] `cachedData` buffer is compatible with this instance +of V8. + ## v8.getHeapSpaceStatistics()