Fix for issue #768

This commit is contained in:
Aparajita Fishman
2010-07-22 23:33:04 -04:00
parent 51f780b5f5
commit 16f71099a3
+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