2.4.18.1.1 ActiveXObject ( name [, location]))

When the ActiveXObject function is called with one or more arguments, the following steps are taken:

1. Call toPrimitive(name, hint Number).

2. If the type of Result(1) is not String, raise a TypeError exception.

3. If Result(1) is an empty string, raise a TypeError exception.

4. If location is not present go to step 7.

5. Call toPrimitive(location, hint Number).

6. If the type of Result(5) is not String, raise a TypeError exception.

7. Raise an Error exception.