String.prototype.toString.js 249 B

1234567891011
  1. load("test-common.js");
  2. try {
  3. assert(String.prototype.toString.length === 0)
  4. assert("".toString() === "");
  5. assert("hello friends".toString() === "hello friends");
  6. console.log("PASS");
  7. } catch (e) {
  8. console.log("FAIL: " + e);
  9. }