diff options
Diffstat (limited to 'Examples/test-suite/javascript/using_protected_runme.js')
-rw-r--r-- | Examples/test-suite/javascript/using_protected_runme.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/using_protected_runme.js b/Examples/test-suite/javascript/using_protected_runme.js new file mode 100644 index 000000000..990f56111 --- /dev/null +++ b/Examples/test-suite/javascript/using_protected_runme.js @@ -0,0 +1,8 @@ +var using_protected = require("using_protected"); + +f = new using_protected.FooBar(); +f.x = 3; + +if (f.blah(4) != 4) { + throw new Error("blah(int)"); +} |