Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index c3610fbe3ffb6df22c959dd2384d79759cc3011c..568ce3158089929004a5803de899f7588e30620e 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1554,9 +1554,10 @@ RUNTIME_FUNCTION(Runtime_SetDelete) { |
CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); |
CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
Handle<OrderedHashSet> table(OrderedHashSet::cast(holder->table())); |
- table = OrderedHashSet::Remove(table, key); |
+ bool was_present = false; |
+ table = OrderedHashSet::Remove(table, key, &was_present); |
holder->set_table(*table); |
- return isolate->heap()->undefined_value(); |
+ return isolate->heap()->ToBoolean(was_present); |
} |