mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 07:57:57 -05:00
9 lines
181 B
TypeScript
9 lines
181 B
TypeScript
// test_output! E: TypeError{"message":"Cannot mutate this because it is const"}
|
|
|
|
export default function () {
|
|
const arr = [1, 2];
|
|
arr.push(3); // Should throw
|
|
|
|
return arr;
|
|
}
|