Permalink
Browse files

Fix for file evaluation showing up as "(anonymous)" in Safari profiler.

Closes #4.

Reviewed by me.
  • Loading branch information...
1 parent 120dcda commit 2f790c650338e235bab0af749a5a11edb3282704 @tolmasky tolmasky committed Apr 23, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 Objective-J/evaluate.js
@@ -161,6 +161,7 @@ function fragment_evaluate_code(aFragment)
compiled = Packages.org.mozilla.javascript.Context.getCurrentContext().compileFunction(window, "function(){"+GET_CODE(aFragment)+"}", GET_FILE(aFragment).path, 0, null);
#else
compiled = new Function(GET_CODE(aFragment));
+ compiled.displayName = GET_FILE(aFragment).path;
#endif
}
catch(anException)

0 comments on commit 2f790c6

Please sign in to comment.