Branch: Tag:

2014-11-24

2014-11-24 16:10:25 by Per Hedbor <ph@opera.com>

The buffer_error_program only takes one argument.

This could probably be handled better.

349:    {    if( io->error_mode )    { +  struct object *err;    if( howmuch > 0 )    {    push_text("Trying to read %d bytes outside allowed range\n");
358:    else    push_text("Illegal arguments\n");    +  if( io->error_mode != buffer_error_program ) +  {    ref_push_object( io->this ); -  push_object(clone_object(io->error_mode, 2)); +  err = clone_object(io->error_mode,2); +  } +  else +  err = clone_object(io->error_mode,1); +  +  push_object(err);    f_throw(1);    }    }