mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-15 11:12:14 -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) {
|
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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user