mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
fix test failures for newer ver of node (#42)
This commit is contained in:
parent
e9422de1c2
commit
1f149d62c2
@ -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) {
|
||||
|
@ -19,6 +19,8 @@
|
||||
* the License.
|
||||
*/
|
||||
|
||||
// note: polyfill here can be removed when everyone is using node >= 6.4.0
|
||||
|
||||
'use strict';
|
||||
|
||||
(function(scope) {
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user