mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
17 lines
247 B
ChaiScript
17 lines
247 B
ChaiScript
|
|
try {
|
|
eval("to_string(5) = \"some string\"")
|
|
assert_true(false)
|
|
} catch (e) {
|
|
print("Caught Error: " + e.what());
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
eval("var v = [1,2,3]; v.size() = 3")
|
|
assert_true(false)
|
|
} catch (e) {
|
|
print("Caught Error: " + e.what());
|
|
}
|