Skip to content

Commit 17e8538

Browse files
fix: fix Cannot redefine property: getFileName (#41)
1 parent 165f670 commit 17e8538

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/entry-point-trampoline.js

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if (enableBindingsPatch) {
4141
if (!entry) return entry;
4242
const origGetFileName = entry.getFileName;
4343
Object.defineProperty(entry, 'getFileName', {
44+
configurable: true,
4445
value: function(...args) {
4546
return origGetFileName.call(this, ...args) || '';
4647
}

0 commit comments

Comments
 (0)