mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 07:28:03 -05:00
9 lines
182 B
TypeScript
9 lines
182 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;
|
|
}
|