fix test failures for newer ver of node (#42)

This commit is contained in:
Lynn 2017-03-24 16:18:09 -07:00 committed by GitHub
parent e9422de1c2
commit 1f149d62c2
3 changed files with 6 additions and 2 deletions

View File

@ -234,7 +234,6 @@ function getHandler(target, property, isStatic) {
function instanceSetHandler(target, property, value) { function instanceSetHandler(target, property, value) {
let prototype = Object.getPrototypeOf(target); let prototype = Object.getPrototypeOf(target);
let desc = Object.getOwnPropertyDescriptor(prototype, property); let desc = Object.getOwnPropertyDescriptor(prototype, property);
if (desc && desc.set) { if (desc && desc.set) {
var args = { var args = {
objId: target._objId, objId: target._objId,
@ -243,7 +242,10 @@ function instanceSetHandler(target, property, value) {
} }
ipcRenderer.sendSync(proxyCmds.set, args); ipcRenderer.sendSync(proxyCmds.set, args);
return true;
} }
return false;
} }
function staticGetHandler(target, name) { function staticGetHandler(target, name) {

View File

@ -19,6 +19,8 @@
* the License. * the License.
*/ */
// note: polyfill here can be removed when everyone is using node >= 6.4.0
'use strict'; 'use strict';
(function(scope) { (function(scope) {

View File

@ -289,7 +289,7 @@ describe('proxy destroy tests...', function() {
}); });
}); });
test('destroy from implementation side', function() { test('destroy from implementation side', function(done) {
inst.close(); inst.close();
inst.getArg1() inst.getArg1()