From 16f71099a34e948e57c829aa32fd3eb4cc39b828 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 22 Jul 2010 23:33:04 -0400 Subject: [PATCH] Fix for issue #768 --- Objective-J/Runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/Runtime.js b/Objective-J/Runtime.js index 7a88ebb9a..7c4566b4e 100644 --- a/Objective-J/Runtime.js +++ b/Objective-J/Runtime.js @@ -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