Skip to content

Commit

Permalink
fix(bundleSource): patch acorn with defineProperty to avoid override (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc authored Feb 27, 2021
1 parent ab7bd28 commit 0ee93e5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/acorn+7.1.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/acorn/dist/acorn.js b/node_modules/acorn/dist/acorn.js
index e2b3317..bc1c4d3 100644
--- a/node_modules/acorn/dist/acorn.js
+++ b/node_modules/acorn/dist/acorn.js
@@ -1811,7 +1811,7 @@
if (checkClashes) {
if (has(checkClashes, expr.name))
{ this.raiseRecoverable(expr.start, "Argument name clash"); }
- checkClashes[expr.name] = true;
+ Object.defineProperty(checkClashes, expr.name, { configurable: true, enumerable: true, value: true });
}
if (bindingType !== BIND_NONE && bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); }
break

0 comments on commit 0ee93e5

Please sign in to comment.