Fix a debug mode bug in IE. Closes #768.

This commit is contained in:
Ross Boucher committed 2010-07-28 15:13:21 -07:00
1 parent 8702b1421f
commit f5322b39bc
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ GLOBAL(objj_class) = function(displayName)
#if DEBUG
// naming the allocator allows the WebKit heap snapshot tool to display object class names correctly
// HACK: displayName property is not respected so we must eval a function to name it
this.allocator = eval("(function " + (displayName || "OBJJ_OBJECT").replace(/\W/g, "_") + "() { })");
eval("this.allocator = function " + (displayName || "OBJJ_OBJECT").replace(/\W/g, "_") + "() { }");
#else
this.allocator = function() { };
#endif