| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| When the Object function is called with one argument value, |
| and the value neither is null nor undefined, and is supplied, return ToObject(value) |
| Calling Object function with sum of empty string and a number as |
| if (obj.constructor !== String) { |
| $ERROR('#2: Object(expression) returns ToObject(expression)'); |
| if (typeof obj !== "object") { |
| $ERROR('#3: Object(expression) returns ToObject(expression)'); |
| if ((obj != "1")||(obj === "1")) { |
| $ERROR('#4: Object(expression) returns ToObject(expression)'); |