diff --git a/js/src/jsinterp.cpp b/js/src/jsinterp.cpp index 34e8b22aabf..2c10c4a7463 100644 --- a/js/src/jsinterp.cpp +++ b/js/src/jsinterp.cpp @@ -951,7 +951,6 @@ LeaveWith(JSContext *cx) { WithObject &withobj = cx->fp()->scopeChain().asWith(); JS_ASSERT(withobj.maybeStackFrame() == js_FloatingFrameIfGenerator(cx, cx->fp())); - JS_ASSERT(withobj.stackDepth() >= 0); withobj.setStackFrame(NULL); cx->fp()->setScopeChainNoCallObj(withobj.enclosingScope()); } diff --git a/js/src/jsopcode.cpp b/js/src/jsopcode.cpp index 89f0c5f9696..5eda14f89ed 100644 --- a/js/src/jsopcode.cpp +++ b/js/src/jsopcode.cpp @@ -775,7 +775,7 @@ Sprinter::stringAt(ptrdiff_t off) const char & Sprinter::operator[](size_t off) { - JS_ASSERT(off >= 0 && (size_t) off < size); + JS_ASSERT(off < size); return *(base + off); }