summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h
index 6fe24da6..1176ad09 100644
--- a/src/value.h
+++ b/src/value.h
@@ -901,16 +901,20 @@ public:
}
sequence_t::iterator begin() {
+ VERIFY(is_sequence());
return as_sequence_lval().begin();
}
sequence_t::iterator end() {
+ VERIFY(is_sequence());
return as_sequence_lval().end();
}
sequence_t::const_iterator begin() const {
+ VERIFY(is_sequence());
return as_sequence().begin();
}
sequence_t::const_iterator end() const {
+ VERIFY(is_sequence());
return as_sequence().end();
}