diff --git a/run-selfhosted.js b/run-selfhosted.js index a4540b71..bc0221ce 100644 --- a/run-selfhosted.js +++ b/run-selfhosted.js @@ -55,7 +55,7 @@ const surrounding_box = (col, lines) => { // Annoying polyfill for inconsistency in different node versions if ( ! import.meta.filename ) { Object.defineProperty(import.meta, 'filename', { - get: import.meta.url.slice('file://'.length), + get: () => import.meta.url.slice('file://'.length), }) }