forked from mirrors/gecko-dev
		
	Bug 1843824: Handle dead wrappers. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D183714
This commit is contained in:
		
							parent
							
								
									a412242182
								
							
						
					
					
						commit
						9a309c9c2a
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -568,7 +568,11 @@ JSObject* PromiseObject::allocationSite() { | |||
| JSObject* PromiseObject::resolutionSite() { | ||||
|   auto debugInfo = PromiseDebugInfo::FromPromise(this); | ||||
|   if (debugInfo) { | ||||
|     return debugInfo->resolutionSite(); | ||||
|     JSObject* site = debugInfo->resolutionSite(); | ||||
|     if (site && !JS_IsDeadWrapper(site)) { | ||||
|       MOZ_ASSERT(UncheckedUnwrap(site)->is<SavedFrame>()); | ||||
|       return site; | ||||
|     } | ||||
|   } | ||||
|   return nullptr; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 André Bargull
						André Bargull