Fix a typo in the JsvalEq intrinsic

This is supposed to be `===`, not `==`.
This commit is contained in:
Alex Crichton 2019-05-31 09:59:55 -07:00
parent cbd4b87d08
commit 55fc5367a5

View File

@ -1033,7 +1033,7 @@ impl<'a, 'b> Rust2Js<'a, 'b> {
let expr = match intrinsic {
Intrinsic::JsvalEq => {
assert_eq!(self.js_arguments.len(), 2);
format!("{} == {}", self.js_arguments[0], self.js_arguments[1])
format!("{} === {}", self.js_arguments[0], self.js_arguments[1])
}
Intrinsic::IsFunction => {