diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-06 13:19:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-06 13:19:48 -0800 |
commit | 36d076140f80d9ba8e3010955fb2144a8c619663 (patch) | |
tree | 3de9064c5cf7fd3570f9bfe9ceccf29dcc8c9532 /tools/test-js-optimizer-output.js | |
parent | b97c0cc2585a6617b8f170c2d8583e4c69f3f50d (diff) |
also hoist loops in inner functions
Diffstat (limited to 'tools/test-js-optimizer-output.js')
-rw-r--r-- | tools/test-js-optimizer-output.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-output.js b/tools/test-js-optimizer-output.js index b1bdc0f8..acf48008 100644 --- a/tools/test-js-optimizer-output.js +++ b/tools/test-js-optimizer-output.js @@ -174,6 +174,13 @@ function hoisting() { var $79 = $_pr6; } } +function innerShouldAlsoBeHoisted() { + function hoisting() { + if ($i < $N) { + callOther(); + } + } +} var FS = { absolutePath: (function(relative, base) { if (typeof relative !== "string") return null; |