Upstreamed from http://code.google.com/p/chromium/issues/detail?id=70895
Created attachment 80184 [details] Patch
This patch is taken from downstream bug, should have Berend-Jan Wever as author. Please fix upon landing.
Comment on attachment 80184 [details] Patch Putting reviewer hat on now... We should not parse snippet twice. Probably we could do some line number math based on the wrapper structure.
But even if you fix the line number, you still get the wrong error message.
I think correct fix would be to compile the wrapper and the handler separately and then provide a way to execute the handler in the context of the wrapper. Achieving this without observable performance hit would be a challenging task though.
Chromium and V8 have left the building. Won't fix.