Untrusted environment: Difference between revisions

m
Line 91:
Of course, no system is perfect and a number of vulnerabilities have been discovered in these mechanisms over the years and will doubtless continue to be discovered in the future given the ubiquity of the Java Platform and hence its attractiveness to hackers.
=={{header|Lua}}==
Lua supports protected calls and custom environments. Details have changed through various versions, and the specifics can become quite involved if/as needed, however the following shouldmight suffice as a simple example for Lua 5.2 or 5.3.
<lang lua>local untrusted = [[
print("hello") -- safe
Anonymous user