chore: fix patch linter (#21495)
This commit is contained in:
parent
7932e28aa2
commit
a90b5f8421
28 changed files with 85 additions and 16 deletions
|
@ -3,6 +3,14 @@ From: Shelley Vohr <shelley.vohr@gmail.com>
|
|||
Date: Tue, 22 Oct 2019 11:00:01 -0700
|
||||
Subject: fix: call InitializeContextRuntime in InitializeContext
|
||||
|
||||
Since https://github.com/nodejs/node/commit/1ec4154e507ba71d7aefca0a6e5c155be34e989a,
|
||||
we observed a crash in renderer process initialization becuase we don't
|
||||
directly call NewContext, and so InitializeContext would not create primordials
|
||||
correctly and the following error would occur:
|
||||
|
||||
node::Environment::CreateProperties(): Assertion `primordials->IsObject()' failed.
|
||||
|
||||
This fixes that. See https://github.com/electron/electron/pull/20684.
|
||||
|
||||
diff --git a/src/api/environment.cc b/src/api/environment.cc
|
||||
index 50886f4a998f1e7f346a6b7fad91ce49c3a7cdff..6ec07527ad7a806f889d884507e9def1cf68b4c8 100644
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue