spec: Remote object should be referenced by methods in its prototype chain
This commit is contained in:
		
					parent
					
						
							
								4ebb01f8c9
							
						
					
				
			
			
				commit
				
					
						b9ead472a5
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -149,6 +149,13 @@ describe('ipc module', function () { | ||||||
|       assert(!proto.hasOwnProperty('method')) |       assert(!proto.hasOwnProperty('method')) | ||||||
|       assert(Object.getPrototypeOf(proto).hasOwnProperty('method')) |       assert(Object.getPrototypeOf(proto).hasOwnProperty('method')) | ||||||
|     }) |     }) | ||||||
|  | 
 | ||||||
|  |     it('is referenced by methods in prototype chain', function () { | ||||||
|  |       let method = derived.method | ||||||
|  |       derived = null | ||||||
|  |       gc() | ||||||
|  |       assert.equal(method(), 'method') | ||||||
|  |     }); | ||||||
|   }) |   }) | ||||||
| 
 | 
 | ||||||
|   describe('ipc.sender.send', function () { |   describe('ipc.sender.send', function () { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao