Skip to content

Commit

Permalink
Fix for file evaluation showing up as "(anonymous)" in Safari profiler.
Browse files Browse the repository at this point in the history
Closes #4.

Reviewed by me.
  • Loading branch information
Francisco Tolmasky committed Apr 23, 2009
1 parent 120dcda commit 2f790c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objective-J/evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f790c6

Please sign in to comment.