Skip to content

Commit

Permalink
Fix merge bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jevancc committed Jan 20, 2021
1 parent 39802be commit 6031e6e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions boa/src/syntax/lexer/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,19 +328,6 @@ impl StringLiteral {
}
}
}
Some(ch) => {
if ch.len_utf16() == 1 {
buf.push(ch as u16);
} else {
buf.extend(ch.encode_utf16(&mut [0u16; 2]).iter());
}
}
None => {
return Err(Error::from(io::Error::new(
ErrorKind::UnexpectedEof,
"unterminated string literal",
)));
}
}
}

Expand Down

0 comments on commit 6031e6e

Please sign in to comment.