swig/Examples/test-suite/javascript/struct_value_runme.js
2013-09-03 16:57:40 +02:00

11 lines
174 B
JavaScript

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"