Inheritance diagram for burst.runtime.SpiderMonkeyRuntime:
Static Public Member Functions | |
void | readEvalSync (String fpath) |
Read a local file synchronously and evaluate its contents. | |
String | readFile_xpcshell (String fname) |
Read a local file synchronously and return its contents. |
|
Read a local file synchronously and evaluate its contents.
This function relies on a global The shell load() evaluates and puts symbols into the global namespace. This function has no useful return value; any result from the evaluation must be done by a callback within the loaded file contents.
Implements burst.runtime.AbstractRuntime. |
|
Read a local file synchronously and return its contents. This function only works in XPCShell. Our implementation basically came Kevin Burton's weblog: http://www.peerfear.org/rss/permalink/2003/01/21/1043160037-File_IO_in_MozillaJavaScript.shtml |