diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-26 15:41:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 15:41:03 +0200 |
commit | 160fe9787ee33c5cfda7218d4ca232345c7fa06e (patch) | |
tree | b97a4b20e5e3c5d5a7e53cd3f8ecbd74c974d502 /ext/node/polyfills/v8.ts | |
parent | d5a8a3d69fd7864d2f48d7524fc79bd9d8f51f53 (diff) |
fix(node): make 'v8.setFlagsFromString' a noop (#19271)
Towards https://github.com/denoland/deno/issues/16460
Diffstat (limited to 'ext/node/polyfills/v8.ts')
-rw-r--r-- | ext/node/polyfills/v8.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/node/polyfills/v8.ts b/ext/node/polyfills/v8.ts index 27feb1cec..e411b541e 100644 --- a/ext/node/polyfills/v8.ts +++ b/ext/node/polyfills/v8.ts @@ -42,7 +42,14 @@ export function getHeapStatistics() { } export function setFlagsFromString() { - notImplemented("v8.setFlagsFromString"); + // NOTE(bartlomieju): From Node.js docs: + // The v8.setFlagsFromString() method can be used to programmatically set V8 + // command-line flags. This method should be used with care. Changing settings + // after the VM has started may result in unpredictable behavior, including + // crashes and data loss; or it may simply do nothing. + // + // Notice: "or it may simply do nothing". This is what we're gonna do, + // this function will just be a no-op. } export function stopCoverage() { notImplemented("v8.stopCoverage"); |