12 lines
172 B
JavaScript
12 lines
172 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"
|