1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/debugger/test/doc_function-display-name.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<!-- Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.6 +<!doctype html> 1.7 + 1.8 +<html> 1.9 + <head> 1.10 + <meta charset="utf-8"/> 1.11 + <title>Debugger test page</title> 1.12 + </head> 1.13 + 1.14 + <body> 1.15 + <script type="text/javascript"> 1.16 + var a = function() { 1.17 + return function() { 1.18 + debugger; 1.19 + } 1.20 + } 1.21 + 1.22 + var anon = a(); 1.23 + anon.displayName = "anonFunc"; 1.24 + 1.25 + var inferred = a(); 1.26 + 1.27 + function evalCall() { 1.28 + eval("anon();"); 1.29 + eval("inferred();"); 1.30 + } 1.31 + </script> 1.32 + </body> 1.33 + 1.34 +</html>