Add a "read" extension to the shell programs. This global function
authoriposva@chromium.org <iposva@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 17 Apr 2009 21:04:34 +0000 (21:04 +0000)
committeriposva@chromium.org <iposva@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 17 Apr 2009 21:04:34 +0000 (21:04 +0000)
commit87756345984feac861ea6c4df8ff347973523209
tree54dd08cbf99119037743e4d8ff7524491687cc1b
parent6290e197168973419cc8ead36d2204aa8e0e0797
Add a "read" extension to the shell programs. This global function
reads the contents of a file into a string and returns it.

Review URL: http://codereview.chromium.org/67262

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1741 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
samples/shell.cc
src/d8.cc
src/d8.h