~ubuntu-branches/ubuntu/wily/mozjs17/wily

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/basic/bug560234.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function test() {
 
2
    var a = ['x', '', '', '', '', '', '', 'x'];
 
3
    var b = '';
 
4
    for (var i = 0; i < a.length; i++) {
 
5
        (function() {
 
6
            a[i].replace(/x/, function() { return b; });
 
7
        }());
 
8
    }
 
9
}
 
10
test();  // should NOT get a ReferenceError for b on trace