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

View File

@ -19,6 +19,8 @@
* the License.
*/
// note: polyfill here can be removed when everyone is using node >= 6.4.0
'use strict';
(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.getArg1()