Closed Bug 451580 Opened 11 years ago Closed 11 years ago

TM: assert in mochitest harness string split

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: sayrer, Assigned: sayrer)

References

Details

Attachments

(2 files)

 
Blocks: landtm
Attached file crash report
Comment on attachment 334915 [details] [diff] [review]
split returns a JSObject

r=shaver, please immediately on tracemonkey ASAP so fast thanks.
Attachment #334915 - Flags: review+
Blocks: 451588
Assignee: general → sayrer
Testcase fails though. Can't see an obvious reason. split comes back as empty always.

Here is Sayre's testcase:

function stringSplitTest()
{
  var s = "a,b"
  var a = null;
  for (var i = 0; i < 10; ++i)
    a = s.split(",");
  return a.join();
}

function stringSplitIntoArrayTest()
{
  var s = "a,b"
  var a = [];
  for (var i = 0; i < 10; ++i)
    a[i] = s.split(",");
  return a.join();
}

print(stringSplitTest())
print(stringSplitIntoArrayTest())
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
in js1_8_1/trace/trace-test.js also
Flags: in-testsuite+
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.