author | Bill McCloskey <wmccloskey@mozilla.com> |
Mon, 05 Nov 2012 14:52:15 -0800 | |
changeset 112356 | ed1c5d55d104a435e241fa825930ed4697073874 |
parent 112355 | ef966ef53b2330c4598c079a9a2f52c5a1f50c54 |
child 112357 | 4cee05d5b1ce84770ad35222f7962289c323304f |
push id | 23812 |
push user | emorley@mozilla.com |
push date | Tue, 06 Nov 2012 14:01:34 +0000 |
treeherder | mozilla-central@f4aeed115e54 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | sstangl |
bugs | 808067 |
milestone | 19.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
new file mode 100644 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug808067.js @@ -0,0 +1,19 @@ +function TestCase(n, d, e, a) + this.reason = ''; +function reportCompare (expected, actual, description) { + var output = ""; + var testcase = new TestCase("unknown-test-name", description, expected, actual); + testcase.reason = output; +} +gcPreserveCode(); +var summary = 'return with argument and lazy generator detection'; +expect = "generator function foo returns a value"; +actual = (function (j) {}).message; +reportCompare(expect, actual, summary + ": 1"); +reportCompare(expect, actual, summary + ": 2"); +gcslice(0); +gcslice(1); +gc(); +var strings = [ (0), ]; +for (var i = 0; i < strings.length; i++) + reportCompare(expect, actual, summary + (5e1) + strings[i]);