Allow remote member functions to be deleted

This commit is contained in:
Kevin Sawicki 2016-03-04 15:51:17 -08:00
parent 610a503188
commit f460d81dd0
2 changed files with 3 additions and 0 deletions

View file

@ -111,6 +111,7 @@ let setObjectMembers = function(object, metaId, members) {
}
};
descriptor.writable = true;
descriptor.configurable = true;
descriptor.value = remoteMemberFunction;
} else if (member.type === 'get') {
descriptor.get = function() {

View file

@ -70,6 +70,8 @@ describe('ipc module', function() {
remoteFunctions.aFunction = function () { return 1234; };
assert.equal(remoteFunctions.aFunction(), 1234);
assert.equal(delete remoteFunctions.aFunction, true);
});
});