Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index 9b71283945992d15e4eb1e5a504bbb24527d3561..e48230e2bd738e042cf0046d00c47ff96d984d4d 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -1115,8 +1115,8 @@ function ArraySort(comparefn) { |
max_prototype_element = CopyFromPrototype(this, length); |
} |
- var num_non_undefined = %IsObserved(this) ? |
- -1 : %RemoveArrayHoles(this, length); |
+ // %RemoveArrayHoles returns -1 if fast removal is not supported. |
+ var num_non_undefined = %RemoveArrayHoles(this, length); |
if (num_non_undefined == -1) { |
// The array is observed, or there were indexed accessors in the array. |