| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-460117.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 460117; |
| 9 |
var summary = 'TM: hasOwnProperty with JIT'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
test(); |
| 16 |
|
| 17 |
|
| 18 |
function test() |
| 19 |
{ |
| 20 |
enterFunc ('test'); |
| 21 |
printBugNumber(BUGNUMBER); |
| 22 |
printStatus (summary); |
| 23 |
|
| 24 |
function t(o, proplist) { |
| 25 |
var props=proplist.split(/\s+/g); |
| 26 |
for (var i=0, len=props.length; i<len; i++) { |
| 27 |
if (o.hasOwnProperty(props[i])) { |
| 28 |
|
| 29 |
} else { |
| 30 |
actual += (props[i]+': '+o.hasOwnProperty(props[i])); |
| 31 |
} |
| 32 |
} |
| 33 |
}; |
| 34 |
|
| 35 |
t({ bar: 123, baz: 123, quux: 123 }, 'bar baz quux'); |
| 36 |
|
| 37 |
reportCompare(expect, actual, summary + ' : nonjit'); |
| 38 |
|
| 39 |
jit(true); |
| 40 |
|
| 41 |
t({ bar: 123, baz: 123, quux: 123 }, 'bar baz quux'); |
| 42 |
|
| 43 |
jit(false); |
| 44 |
|
| 45 |
reportCompare(expect, actual, summary + ' : jit'); |
| 46 |
|
| 47 |
exitFunc ('test'); |
| 48 |
} |