Changeset 17740 for trunk/FACT++/www/viewer
- Timestamp:
- 04/30/14 13:24:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.php
r17732 r17740 336 336 $rc['timeJs'][0] = (microtime(true) - $rc['startJs']); 337 337 338 $JS = " function proc(pixel){\n".$_POST['source1']."\n};proc(".$pixel.");";338 $JS = "'use strict'; function proc(pixel){\n".$_POST['source1']."\n};proc(".$pixel.");"; 339 339 $rc['waveform'] = $v8->executeString($JS, 'proc'); 340 340 … … 343 343 if (isset($_POST['source2'])) 344 344 { 345 $JS = " (function main(){\n".$_POST['source2']."\n})();";345 $JS = "'use strict'; (function main(){\n".$_POST['source2']."\n})();"; 346 346 $rc['ret'] = $v8->executeString($JS, 'main'); 347 347 }
Note:
See TracChangeset
for help on using the changeset viewer.