denoland / deno_core

The core engine at the heart of Deno
MIT License
233 stars 76 forks source link

Reserve the default context for V8 internals #782

Closed littledivy closed 3 weeks ago

littledivy commented 3 weeks ago

V8 uses the default context for internal things https://chromium.googlesource.com/v8/v8/+/refs/heads/main/src/inspector/v8-inspector-impl.cc#356

With this PR, deno_core will create a new default context during snapshot and add deno_core's context separately (as the last context of the snapshot)

Ref https://github.com/denoland/deno/pull/24204/

Fixes https://github.com/denoland/deno/issues/24196