| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-313570.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 313570; |
| 9 |
var summary = 'length of objects whose prototype chain includes a function'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
printBugNumber(BUGNUMBER); |
| 14 |
printStatus (summary); |
| 15 |
|
| 16 |
function tmp() {} |
| 17 |
tmp.prototype = function(a, b, c) {}; |
| 18 |
var obj = new tmp(); |
| 19 |
|
| 20 |
|
| 21 |
expect = 3; |
| 22 |
actual = obj.length; |
| 23 |
reportCompare(expect, actual, summary + ': arity'); |
| 24 |
|
| 25 |
|
| 26 |
obj.length = 10; |
| 27 |
|
| 28 |
expect = 3; |
| 29 |
actual = obj.length; |
| 30 |
reportCompare(expect, actual, summary + ': immutable'); |
| 31 |
|