« Bugzilla Issues Index

#103 — looks suspicious

This test case includes:
function testcase() {
var dateObj = new Date();
return === dateObj.toString();

ES5.1 states: Date.prototype.toString ( )
This function returns a String value. The contents of the String are implementation-dependent, but are intended to represent the Date in the current time zone in a convenient, human-readable form.

Without diving into the definition of String.trim, I'd say it's possible that some implementations could fail this test and still adhere to the spec.

Ditto for

Confirmed both of these test cases are invalid.

Fix added to Mercurial.