diff options
Diffstat (limited to 'js/test/Common/Common.js')
-rw-r--r-- | js/test/Common/Common.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/test/Common/Common.js b/js/test/Common/Common.js index 3738c86b6b4..635e2b6e834 100644 --- a/js/test/Common/Common.js +++ b/js/test/Common/Common.js @@ -25,9 +25,10 @@ var run = function(m) var id = new Ice.InitializationData(); id.properties = Ice.createProperties(process.argv); var test = m.require("./Client").__test__; - test({write: write, writeLine: writeLine}, id).exception( - function(ex, r) + test({write: write, writeLine: writeLine}, id).catch( + function(values) { + let [ex, r] = values; console.log(ex.toString()); if(r instanceof Ice.AsyncResult) { |