1 2 3 4 5 6 7 8
var ret_by_value = require("ret_by_value"); a = ret_by_value.get_test(); if (a.myInt != 100) throw "RuntimeError"; if (a.myShort != 200) throw "RuntimeError";