aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/using_private_runme.js
blob: ee3ecb35eb6121e9c509d0a1ed797608bb395311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var using_private = require("using_private");

f = new using_private.FooBar();
f.x = 3;

if (f.blah(4) != 4) {
    throw new Error("blah(int)");
}

if (f.defaulted() != -1) {
    throw new Error("defaulted()");
}

if (f.defaulted(222) != 222) {
    throw new Error("defaulted(222)");
}