Index: src/js/arraybuffer.js |
diff --git a/src/js/arraybuffer.js b/src/js/arraybuffer.js |
index f0273c71ed757515a096fa554399bca171857d4c..e739960e5be8a21c063a546c960d8114c2f14967 100644 |
--- a/src/js/arraybuffer.js |
+++ b/src/js/arraybuffer.js |
@@ -70,7 +70,9 @@ function ArrayBufferSlice(start, end) { |
throw MakeTypeError(kIncompatibleMethodReceiver, |
'ArrayBuffer.prototype.slice', result); |
} |
- // TODO(littledan): Check for a detached ArrayBuffer |
+ // Checks for detached source/target ArrayBuffers are done inside of |
+ // %ArrayBufferSliceImpl; the reordering of checks does not violate |
+ // the spec because all exceptions thrown are TypeErrors. |
if (result === this) { |
throw MakeTypeError(kArrayBufferSpeciesThis); |
} |