~ubuntu-branches/ubuntu/trusty/mozjs17/trusty

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/basic/function-tosource-strict.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 outer() {
 
2
    "use strict";
 
3
    function inner() {}
 
4
    return inner;
 
5
}
 
6
assertEq(outer().toString().indexOf("use strict") != -1, true);
 
7
function outer2() {
 
8
    "use strict";
 
9
    function inner() blah;
 
10
    return inner;
 
11
}
 
12
assertEq(outer2().toString().indexOf("/* use strict */") != -1, true);