mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 15:38:06 -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;
|
|
}
|