Loading ...
Sorry, an error occurred while loading the content.

Re: Possible invalid test in createExceptionObject function in connection.js

Expand Messages
  • Thomas S. Sha
    ... Confirmed. This evaluation should be the same as in createResponseObject(). Will fix for 0.12. Regards, Thomas
    Message 1 of 2 , Oct 4, 2006
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "dprusak@..." <dprusak@...> wrote:
      >
      > Currently in the test, createExceptionObject is checking to see if the
      > callbackArg is true or false.
      >
      > However, is the argument is set to zero; 0, the test will fail as 0
      > will render false.
      >
      > We have the following code in place to get around this problem.
      >
      > //Check to see if callbackArg is defined before use. */
      > if(typeof callbackArg !== undefined){
      > // End of defined check. Original code below. */
      > // if(callbackArg){
      > // End of original code. */
      > obj.argument = callbackArg;
      > }

      Confirmed. This evaluation should be the same as in
      createResponseObject(). Will fix for 0.12.

      Regards,
      Thomas
    Your message has been successfully submitted and would be delivered to recipients shortly.