source: trunk/Utilities/JsObjectDispatch/TestA.js @ 937

Last change on this file since 937 was 919, checked in by roman, 4 years ago

Update and VBS test

File size: 472 bytes
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2012
3// Created by Roman Ryltsov roman@alax.info
4//
5// $Id: Test.js 124 2012-09-15 12:27:26Z roman $
6
7foo = WScript.CreateObject("AlaxInfo.JsObjectDispatch.Foo");
8
9function InstanceOf(object, type) {
10    return object instanceof type;
11}
12
13foo.bar(new Error());
14foo.bar(Error);
15foo.bar(InstanceOf(new Error(), Error));
16foo.bar(InstanceOf(new Error(), Date));
Note: See TracBrowser for help on using the repository browser.