Created attachment 463491 [details] [diff] [review] Patch for the 'read' function. In other JS shells (v8, jsc), the function to read a file into a string is called 'read'. We call it "snarf". This adds a synonym called "read". This makes one of the fixes for bug 580532 simpler to send upstream to webkit. There don't seem to be tests for the shell, so tested by hand.
This was accidentally committed as part of bug 578158, but it was decided to leave it in since it was approved anyway.