Use node_isolate instead of Isolate::GetCurrent().
This commit is contained in:
		
					parent
					
						
							
								363f1da77e
							
						
					
				
			
			
				commit
				
					
						426bc97194
					
				
			
		
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -174,7 +174,7 @@ void App::DockGetBadgeText(const v8::FunctionCallbackInfo<v8::Value>& args) {
 | 
			
		|||
 | 
			
		||||
// static
 | 
			
		||||
void App::Initialize(v8::Handle<v8::Object> target) {
 | 
			
		||||
  v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
 | 
			
		||||
  v8::HandleScope handle_scope(node_isolate);
 | 
			
		||||
 | 
			
		||||
  v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(New);
 | 
			
		||||
  t->InstanceTemplate()->SetInternalFieldCount(1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -102,7 +102,7 @@ void AutoUpdater::QuitAndInstall(
 | 
			
		|||
 | 
			
		||||
// static
 | 
			
		||||
void AutoUpdater::Initialize(v8::Handle<v8::Object> target) {
 | 
			
		||||
  v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
 | 
			
		||||
  v8::HandleScope handle_scope(node_isolate);
 | 
			
		||||
 | 
			
		||||
  v8::Local<v8::FunctionTemplate> t(
 | 
			
		||||
      v8::FunctionTemplate::New(AutoUpdater::New));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue