spec: Remote object should be referenced by methods in its prototype chain

This commit is contained in:
Cheng Zhao 2016-04-01 15:35:34 +09:00
parent 4ebb01f8c9
commit b9ead472a5

View file

@ -149,6 +149,13 @@ describe('ipc module', function () {
assert(!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 () {