swig/Examples/test-suite/javascript/using_protected_runme.js

9 lines
153 B
JavaScript

var using_protected = require("using_protected");
f = new using_protected.FooBar();
f.x = 3;
if (f.blah(4) != 4) {
throw new Error("blah(int)");
}