aboutsummaryrefslogtreecommitdiff
path: root/src/test/fixtures/function-scope-bug.jsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-08 18:12:54 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-08 18:12:54 -0700
commitecabda3ced144698684717dccd067e2519def21d (patch)
tree1504d6e829393b1e03b6bf8ae70ccff8ed61e2ed /src/test/fixtures/function-scope-bug.jsx
parent18794b18b32e5cfeb190f29fe29590d742a327e8 (diff)
downloadbun-ecabda3ced144698684717dccd067e2519def21d.tar.gz
bun-ecabda3ced144698684717dccd067e2519def21d.tar.zst
bun-ecabda3ced144698684717dccd067e2519def21d.zip
Fix exporting default twice
Former-commit-id: 2f4cd402e4f718d2ab89e4ae61582d95eae7cd97
Diffstat (limited to 'src/test/fixtures/function-scope-bug.jsx')
-rw-r--r--src/test/fixtures/function-scope-bug.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/fixtures/function-scope-bug.jsx b/src/test/fixtures/function-scope-bug.jsx
index 57c783d87..6c76e8fac 100644
--- a/src/test/fixtures/function-scope-bug.jsx
+++ b/src/test/fixtures/function-scope-bug.jsx
@@ -14,7 +14,10 @@ var Bar = () => {
);
};
-// This is where it failed.
+// It failed while parsing this function.
+// The bug happened due to incorrectly modifying scopes_in_order
+// The fix was using tombstoning instead of deleting
+// The fix also resolved some performance issues.
var Baz = () => {
return (
<div prop={1}>