Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test + fmt fix #646

Merged
merged 2 commits into from
Aug 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions boa/src/exec/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,9 @@ mod in_operator {
let bar_val = forward_val(&mut engine, "bar").unwrap();
let bar_obj = bar_val.as_object().unwrap();
let foo_val = forward_val(&mut engine, "Foo").unwrap();
let foo_obj = foo_val.as_object().unwrap();
assert!(bar_obj
.prototype()
.strict_equals(&foo_obj.get_field("prototype").unwrap()));
.strict_equals(&foo_val.get_field("prototype")));
}
}

Expand Down Expand Up @@ -967,7 +966,7 @@ fn to_length() {
assert_eq!(
Value::number(100000000000.0)
.to_length(&mut engine)
.unwrap(),
.unwrap() as u128,
Lan2u marked this conversation as resolved.
Show resolved Hide resolved
100000000000
);
assert_eq!(
Expand Down