@tsvm/transforms 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -449,8 +449,7 @@ var NamespaceVirtualizationPass = class {
449
449
  }
450
450
  } else if (inst.result) {
451
451
  const srcOp = inst.operands[0];
452
- const isSrcReg = srcOp && srcOp.kind === OperandKind5.Register && typeof srcOp.value === "string";
453
- if ((inst.opcode === OpCode4.PropGet || inst.opcode === OpCode4.ComputedGet) && isSrcReg && paramRegs.has(srcOp.value)) {
452
+ if ((inst.opcode === OpCode4.PropGet || inst.opcode === OpCode4.ComputedGet) && srcOp.kind === OperandKind5.Register && typeof srcOp.value === "string" && paramRegs.has(srcOp.value)) {
454
453
  paramRegs.add(inst.result);
455
454
  } else if (inst.opcode === OpCode4.Call || inst.opcode === OpCode4.CallMethod || inst.opcode === OpCode4.CallWithArray || inst.opcode === OpCode4.CallMethodWithArray) {
456
455
  paramRegs.add(inst.result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsvm/transforms",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "LICENSE"
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@tsvm/shared": "0.1.0",
23
- "@tsvm/ir": "0.1.1"
22
+ "@tsvm/shared": "0.1.1",
23
+ "@tsvm/ir": "0.1.2"
24
24
  },
25
25
  "devDependencies": {
26
26
  "tsup": "^8.4.0",