Changeset 17740 for trunk


Ignore:
Timestamp:
04/30/14 13:24:14 (11 years ago)
Author:
tbretz
Message:
Switch to strict mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.php

    r17732 r17740  
    336336        $rc['timeJs'][0] = (microtime(true) - $rc['startJs']);
    337337
    338         $JS = "function proc(pixel){\n".$_POST['source1']."\n};proc(".$pixel.");";
     338        $JS = "'use strict'; function proc(pixel){\n".$_POST['source1']."\n};proc(".$pixel.");";
    339339        $rc['waveform'] = $v8->executeString($JS, 'proc');
    340340
     
    343343        if (isset($_POST['source2']))
    344344        {
    345             $JS = "(function main(){\n".$_POST['source2']."\n})();";
     345            $JS = "'use strict'; (function main(){\n".$_POST['source2']."\n})();";
    346346            $rc['ret'] = $v8->executeString($JS, 'main');
    347347        }
Note: See TracChangeset for help on using the changeset viewer.