From b9ead472a55719c3e6fd295df9b165450c44642d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 1 Apr 2016 15:35:34 +0900 Subject: [PATCH] spec: Remote object should be referenced by methods in its prototype chain --- spec/api-ipc-spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/api-ipc-spec.js b/spec/api-ipc-spec.js index da4acf887e4b..c98689287cea 100644 --- a/spec/api-ipc-spec.js +++ b/spec/api-ipc-spec.js @@ -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 () {