comparison: js/src/jit-test/tests/basic/function-tosource-strict.js
js/src/jit-test/tests/basic/function-tosource-strict.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
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); |