11 lines
174 B
JavaScript
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"
|