- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js
r59329aa re29cc2e 24 24 let processed = state.get("processed"); 25 25 if (!processed) { 26 processed = new Map();26 processed = new WeakSet(); 27 27 state.set("processed", processed); 28 28 } … … 56 56 // identity`a${0}` 57 57 const template = t.taggedTemplateExpression( 58 identity,58 t.cloneNode(identity), 59 59 t.templateLiteral( 60 60 path.node.quasi.quasis, … … 62 62 ) 63 63 ); 64 processed. set(template, true);64 processed.add(template); 65 65 66 66 // Install an inline cache at the callsite using the global variable: … … 73 73 "||", 74 74 ident, 75 t.assignmentExpression("=", ident, template)75 t.assignmentExpression("=", t.cloneNode(ident), template) 76 76 ); 77 77
Note:
See TracChangeset
for help on using the changeset viewer.