-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify CompilerDriver to write out a temp file, then rename on top.
Summary: This fixes a bug when the input and output of the compiler are the same filename. It was possible for the compiler to try to read source lines from the JS file to print a warning, when the file had already been truncated and/or overwritten with bytecode. On linux, this would blow up. #45 includes a repro. This also updates some tests which used -out /dev/null which will no longer work, as /dev/null.@@@@@@ cannot be created. Reviewed By: avp Differential Revision: D16383966 fbshipit-source-id: feed4f830d8f9d1a36fc162f6d15d0e963d8d72f
- Loading branch information
1 parent
d2eabd6
commit 5fb66d2
Showing
6 changed files
with
129 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters