Safe mode: Difference between revisions

m
no edit summary
(Created page with "{{draft task}} Does the language implementation allow for a "safer mode" of execution? Usually termed '''Safe mode''', a more realistic view is probably '''Safer mode''' or...")
 
mNo edit summary
Line 9:
The '''jsish''' interpreter allows a '''-s''', '''--safe''' command line switch to restrict access to the file system.
 
For example, given ''''safer.jsi'''':
 
<lang javascript>File.write('/tmp/safer-mode.txt', 'data line');</lang>
Anonymous user