refactor: node::Environment self-cleanup (#39604)
* chore: savepoint * chore: turn raw_ptr tests back off
This commit is contained in:
		
					parent
					
						
							
								a8999bc529
							
						
					
				
			
			
				commit
				
					
						35969939a1
					
				
			
		
					 12 changed files with 95 additions and 83 deletions
				
			
		| 
						 | 
				
			
			@ -55,7 +55,7 @@ class ElectronRendererClient : public RendererClientBase {
 | 
			
		|||
  // The node::Environment::GetCurrent API does not return nullptr when it
 | 
			
		||||
  // is called for a context without node::Environment, so we have to keep
 | 
			
		||||
  // a book of the environments created.
 | 
			
		||||
  std::set<node::Environment*> environments_;
 | 
			
		||||
  std::set<std::shared_ptr<node::Environment>> environments_;
 | 
			
		||||
 | 
			
		||||
  // Getting main script context from web frame would lazily initializes
 | 
			
		||||
  // its script context. Doing so in a web page without scripts would trigger
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue