Make JS use a '.wasm' extension when importing the binary

This commit is contained in:
Jamen Marz
2018-06-25 12:57:02 -06:00
parent 7936e1eb27
commit a596dc4129
2 changed files with 11 additions and 11 deletions

View File

@ -403,11 +403,11 @@ fn indent_recurse(mut lines: ::std::str::Lines, current_indent: usize) -> String
next_indent += 1;
}
if trimmed.starts_with('}') || trimmed.ends_with('}') {
if current_indent > 0 {
current_indent -= 1;
if current_indent > 0 {
current_indent -= 1;
}
if next_indent > 0 {
next_indent -= 1;
if next_indent > 0 {
next_indent -= 1;
}
}
if trimmed.starts_with('?') || trimmed.starts_with(':') {