Skip to content

Commit f727fb2

Browse files
committed
s/release_handle/release_ownership/g
1 parent 8b3169d commit f727fb2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

system/include/emscripten/val.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class val {
406406
}
407407

408408
// Takes ownership of the handle away from, and invalidates, this instance.
409-
EM_VAL release_handle() {
409+
EM_VAL release_ownership() {
410410
EM_VAL taken = as_handle();
411411
handle = 0;
412412
return taken;
@@ -806,7 +806,7 @@ struct BindingType<T, typename std::enable_if<std::is_base_of<val, T>::value &&
806806
// Marshall to JS with move semantics when we can invalidate the temporary val
807807
// object.
808808
static WireType toWireType(val&& v) {
809-
return v.release_handle();
809+
return v.release_ownership();
810810
}
811811

812812
// Marshal to JS with copy semantics when we cannot transfer the val objects

0 commit comments

Comments
 (0)