chore(core): Remove a note that is no longer relevant. (#14069)

This note about how `v8::SnapshotCreator::create_blob` must not be
called from a `HandleScope` stopped being relevant in #6801, and was
now attached to code that had nothing to do with `HandleScope`s.
This commit is contained in:
Andreu Botella 2022-03-22 22:57:15 +01:00 committed by GitHub
parent 6268a1a6fd
commit 49be140d2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -662,8 +662,6 @@ impl JsRuntime {
let state = Self::state(self.v8_isolate());
// Note: create_blob() method must not be called from within a HandleScope.
// TODO(piscisaureus): The rusty_v8 type system should enforce this.
state.borrow_mut().global_context.take();
self.inspector.take();