debian-mirror-gitlab/app/assets/javascripts/lib/utils/vue3compat/mark_raw.js
2023-05-27 22:25:52 +05:30

9 lines
190 B
JavaScript

// this will be replaced by markRaw from vue.js v3
export function markRaw(obj) {
Object.defineProperty(obj, '__v_skip', {
value: true,
configurable: true,
});
return obj;
}