jump to navigation

Grrr setbacks as always May 16, 2008

Posted by Dmitri in Uncategorized.
trackback

Getting an error that says,

Error: toAppend has no properties
Source File: chrome://slashid/content/E20C0D3A0B5676DBB9395C022DE2F5C4.cache.js
Line: 3285

inside the function

function java_lang_StringBuffer_$append__Ljava_lang_StringBuffer_2Ljava_lang_String_2(this$static, toAppend){
  if (toAppend === null) {
    toAppend = 'null';
  }
  var last = this$static.js.length - 1;
  var lastLength = this$static.js[last].length;
  if (this$static.length > lastLength * lastLength) {
    this$static.js[last] = this$static.js[last] + toAppend;
  }
   else {
    this$static.js.push(toAppend);
  }
  this$static.length += toAppend.length;
  return this$static;
}

which is a GWT-generated function (i.e. I didn’t write it explicitly) which makes it really annoying since it makes it really hard which line of my code causes it, or what causes it all, actually.  And I can’t debug it line-by-line with GWT’s hosted browser cause of the pain-in-the-ass SOP (Single Origin Policy).

Grrrrr.

Advertisements

Comments»

1. The Third Bit » Blog Archive » But I Was Gone Less than 48 Hours! - May 16, 2008

[…] Dmitri Vassiliev, who is continuing his work on SlashID this summer, has discovered that generated code is next-to-impossible to debug. Not to be a one-note symphony or anything, but I said in that same article about extensible […]

2. But I Was Gone Less than 48 Hours! « Software Carpentry - April 17, 2010

[…] Dmitri Vassiliev, who is continuing his work on SlashID this summer, has discovered that generated code is next-to-impossible to debug. Not to be a one-note symphony or anything, but I said in that same article about extensible […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: