| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
var gTestfile = 'regress-23346.js'; |
| 8 |
|
| 9 |
var CALL_CALLED = "PASSED"; |
| 10 |
|
| 11 |
test(); |
| 12 |
|
| 13 |
function f(x) |
| 14 |
{ |
| 15 |
if (x) |
| 16 |
return call(); |
| 17 |
|
| 18 |
return "FAILED!"; |
| 19 |
} |
| 20 |
|
| 21 |
function call() |
| 22 |
{ |
| 23 |
return CALL_CALLED; |
| 24 |
} |
| 25 |
|
| 26 |
function test() |
| 27 |
{ |
| 28 |
enterFunc ("test"); |
| 29 |
|
| 30 |
printStatus ("ECMA Section: 10.1.3: Variable Instantiation."); |
| 31 |
printBugNumber (23346); |
| 32 |
|
| 33 |
reportCompare ("PASSED", f(true), |
| 34 |
"Unqualified reference should not see Function.prototype"); |
| 35 |
|
| 36 |
exitFunc("test"); |
| 37 |
} |