1 2 3 4 5 6 7 8 9 10 11
var struct_value = require("struct_value"); b = new struct_value.Bar(); b.a.x = 3; if (b.a.x != 3) throw "RuntimeError"; b.b.x = 3; if (b.b.x != 3) throw "RuntimeError"