open attached HTML file in recent Firefox (version 12 on OSX here)
click any of the links
observe error messages like "$.window().get$location().get$hash is not a function" in the error console
What is the expected output? What do you see instead?
Recent Chrome (19.0.1084.46 on OSX here) produces the correct output:
"hash = #foo"
"hash = #bar"
What version of the product are you using? On what operating system?
Firefox 12.0 (doesn't work), Chrome 19.0.1084.46 (works). Compiler is dart2js from latest unstable dart-macos.zip, downloaded May 18 14:43 MD5 sum db6e69f26ea92e9be5b709161f1b5556.
I attached both the dart source code and the compiled .dart.js file.