diff options
Diffstat (limited to 'src/stub-cache.cc')
-rw-r--r-- | src/stub-cache.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stub-cache.cc b/src/stub-cache.cc index 6b41577e..e6df1b49 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -988,6 +988,7 @@ Object* StoreInterceptorProperty(Arguments args) { Object* KeyedLoadPropertyWithInterceptor(Arguments args) { JSObject* receiver = JSObject::cast(args[0]); + ASSERT(Smi::cast(args[1])->value() >= 0); uint32_t index = Smi::cast(args[1])->value(); return receiver->GetElementWithInterceptor(receiver, index); } |