10 lines
203 B
JavaScript
10 lines
203 B
JavaScript
export function freezeHead(head) {
|
|
const realPush = head.push;
|
|
head.push = () => ({ dispose: () => {
|
|
}, patch: () => {
|
|
}, _poll: () => {
|
|
} });
|
|
return () => {
|
|
head.push = realPush;
|
|
};
|
|
}
|