Skip to content

Commit

Permalink
chore: add todo comment to change DUMMY_RAW_JS_STRING to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyboyQCD committed Jul 19, 2024
1 parent 8475614 commit 8e0badc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/engine/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ macro_rules! js_string {
// and `RawJsString` is private.
// With `Null Pointer Optimization` we could use `None`
// to represent `Cell(0usize)` to mark it as being created from ASCII literal.
// TODO: change to `const` once https://github.com/rust-lang/rust/issues/119618 is done.
static DUMMY_RAW_JS_STRING: &[Option<&usize>; 2] = &[
// SAFETY:
// Reference of static variable is always valid to cast into an non-null pointer,
Expand Down

0 comments on commit 8e0badc

Please sign in to comment.