Skip to content

Commit 7521b22

Browse files
authored
Reuse single call to emval_equals. NFC (#20408)
1 parent 2f21e23 commit 7521b22

File tree

1 file changed

+2
-2
lines changed
  • system/include/emscripten

1 file changed

+2
-2
lines changed

system/include/emscripten/val.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,11 @@ class val {
460460
}
461461

462462
bool operator==(const val& v) const {
463-
return internal::_emval_equals(as_handle(), v.as_handle());
463+
return equals(v);
464464
}
465465

466466
bool operator!=(const val& v) const {
467-
return !(*this == v);
467+
return !equals(v);
468468
}
469469

470470
bool strictlyEquals(const val& v) const {

0 commit comments

Comments
 (0)