Make member functions writable
authorKevin Sawicki <kevinsawicki@gmail.com>
Fri, 4 Mar 2016 23:49:46 +0000 (15:49 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 4 Mar 2016 23:49:46 +0000 (15:49 -0800)
atom/renderer/api/lib/remote.js

index a979833..6b84f74 100644 (file)
@@ -110,6 +110,7 @@ let setObjectMembers = function(object, metaId, members) {
           return metaToValue(ret);
         }
       };
+      descriptor.writable = true;
       descriptor.value = remoteMemberFunction;
     } else if (member.type === 'get') {
       descriptor.get = function() {