Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index c0814a80cb0e184db7cc4e880a697b560bd85a11..a049fb9e9650ff7bde5b90a4b08f16f5d470290a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -16365,6 +16365,7 @@ void JSDate::SetCachedFields(int64_t local_time_ms, DateCache* date_cache) { |
void JSArrayBuffer::Neuter() { |
+ DCHECK(is_neuterable()); |
Dmitry Lomov (no reviews)
2014/10/29 10:15:38
Change to CHECK - this should fail in release as w
|
DCHECK(is_external()); |
set_backing_store(NULL); |
set_byte_length(Smi::FromInt(0)); |
@@ -16372,6 +16373,7 @@ void JSArrayBuffer::Neuter() { |
void JSArrayBufferView::NeuterView() { |
+ DCHECK(JSArrayBuffer::cast(buffer())->is_neuterable()); |
Dmitry Lomov (no reviews)
2014/10/29 10:15:38
Change to CHECK - this should fail in release as w
|
set_byte_offset(Smi::FromInt(0)); |
set_byte_length(Smi::FromInt(0)); |
} |