b08fcc744b
I also did a few refactorings: * Tried to tame the "nativeName" stuff to keep the code paths from forking too much * Removed the bad code duplication between needsConversion and convertTo in Value (they had gone out of sync again!) * Simplified the function wrapping code & made it clear it's about isolates. The code still checks for DOM, but conceptually it's part of our isolate impl. If we had a different way to tag native function types (e.g. perhaps the "native" keyword, if it's allowed in that position?) we could remove the DOM check there. Review URL: http://codereview.chromium.org//9110027 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3057 260f80e4-7a28-3924-810f-c04153c831b5