Bug 452329 - Fix a bad assumption. r=brendan

This commit is contained in:
Blake Kaplan 2008-08-29 16:03:18 -07:00
parent 48fb3e7f94
commit ee86ee3cf1

View File

@ -1239,8 +1239,7 @@ match_or_replace(JSContext *cx,
* Assume a full array result is required, then prove otherwise.
*/
test = JS_FALSE;
if (data->pc) {
JS_ASSERT(*data->pc == JSOP_CALL || *data->pc == JSOP_NEW);
if (data->pc && (*data->pc == JSOP_CALL || *data->pc == JSOP_NEW)) {
JS_ASSERT(js_CodeSpec[*data->pc].length == 3);
switch (data->pc[3]) {
case JSOP_POP: