11 lines
203 B
JavaScript
11 lines
203 B
JavaScript
function Component() {
|
|
const a = [];
|
|
useFreeze(a); // should freeze
|
|
useFreeze(a); // should be readonly
|
|
call(a); // should be readonly
|
|
return a;
|
|
}
|
|
|
|
function useFreeze(x) {}
|
|
function call(x) {}
|