Skip to content

Commit

Permalink
avm2: Do not ignore nulls in String.fromCharCode
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepycatcoding authored and torokati44 committed Aug 18, 2023
1 parent 7316f51 commit a44546a
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions core/src/avm2/globals/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ fn from_char_code<'gc>(
let mut out = WString::with_capacity(args.len(), false);
for arg in args {
let i = arg.coerce_to_u32(activation)? as u16;
if i == 0 {
// Ignore nulls.
continue;
}
out.push(i);
}
Ok(AvmString::new(activation.context.gc_context, out).into())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
num_ticks = 1
known_failure = true

0 comments on commit a44546a

Please sign in to comment.