Skip to content

Commit

Permalink
Fix object hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Mar 7, 2022
1 parent c7df073 commit a67b061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boa_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ struct Opt {
)]
dump_ast: Option<Option<DumpFormat>>,

/// Dump the AST to stdout with the given format.
/// Dump the compiled bytecode and trace the execution stack
#[structopt(long = "trace", short = "t")]
trace: bool,

Expand Down
2 changes: 1 addition & 1 deletion boa_engine/src/value/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Hash for JsValue {
JsVariant::BigInt(bigint) => bigint.hash(state),
JsVariant::Rational(rational) => RationalHashable(rational).hash(state),
JsVariant::Symbol(symbol) => Hash::hash(symbol.as_ref(), state),
JsVariant::Object(object) => std::ptr::hash(object.as_ref(), state),
JsVariant::Object(object) => std::ptr::hash((*object).as_ref(), state),
}
}
}

0 comments on commit a67b061

Please sign in to comment.