Skip to content

Commit

Permalink
Build dist after push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
it-tiobe committed Apr 14, 2023
1 parent 0366762 commit a12731b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58209,13 +58209,13 @@ function transformer(args, body, isAsync, isGenerator, filename) {
__proto__: null,
pos: node.start,
order: TO_RIGHT,
code: `catch($tmpname){try{throw ${INTERNAL_STATE_NAME}.handleException($tmpname);}`
coder: () => `catch(${tmpname}){try{throw(${tmpname}=${INTERNAL_STATE_NAME}.handleException(${tmpname}));}`
});
insertions.push({
__proto__: null,
pos: node.body.end,
order: TO_LEFT,
code: `}`
coder: () => `}`
});
} else {
const name = assertType(param, 'Identifier').name;
Expand All @@ -58225,7 +58225,7 @@ function transformer(args, body, isAsync, isGenerator, filename) {
__proto__: null,
pos: cBody.body[0].start,
order: TO_LEFT,
code: `${name}=${INTERNAL_STATE_NAME}.handleException(${name});`
coder: () => `${name}=${INTERNAL_STATE_NAME}.handleException(${name});`
});
}
}
Expand All @@ -58235,13 +58235,13 @@ function transformer(args, body, isAsync, isGenerator, filename) {
__proto__: null,
pos: node.object.start,
order: TO_LEFT,
code: INTERNAL_STATE_NAME + '.wrapWith('
coder: () => INTERNAL_STATE_NAME + '.wrapWith('
});
insertions.push({
__proto__: null,
pos: node.object.end,
order: TO_RIGHT,
code: ')'
coder: () => ')'
});
} else if (nodeType === 'Identifier') {
if (node.name === INTERNAL_STATE_NAME) {
Expand All @@ -58256,7 +58256,7 @@ function transformer(args, body, isAsync, isGenerator, filename) {
__proto__: null,
pos: node.start,
order: TO_RIGHT,
code: INTERNAL_STATE_NAME + '.'
coder: () => INTERNAL_STATE_NAME + '.'
});
}
});
Expand All @@ -58277,7 +58277,7 @@ function transformer(args, body, isAsync, isGenerator, filename) {
let curr = 0;
for (let i = 0; i < insertions.length; i++) {
const change = insertions[i];
ncode += code.substring(curr, change.pos) + change.code.replace(/\$tmpname/g, tmpname);
ncode += code.substring(curr, change.pos) + change.coder();
curr = change.pos;
}
ncode += code.substring(curr);
Expand Down

0 comments on commit a12731b

Please sign in to comment.