include some extra debug info in compat layer calls
This commit is contained in:
1 file changed
+2
-4
@@ -74,7 +74,7 @@ const generateCompatCall = (util) => {
|
||||
const inputNames = util.allInputs();
|
||||
const fieldNames = util.allFields();
|
||||
|
||||
let result = 'yield* executeInCompatibilityLayer({';
|
||||
let result = `/* ${opcode} */ yield* executeInCompatibilityLayer({`;
|
||||
for (const inputName of inputNames) {
|
||||
const compiledInput = util.input(inputName);
|
||||
result += `"${util.safe(inputName)}":${compiledInput},`;
|
||||
@@ -83,9 +83,7 @@ const generateCompatCall = (util) => {
|
||||
const fieldValue = util.fieldValueUnsafe(fieldName);
|
||||
result += `"${util.safe(fieldName)}":"${util.safe(fieldValue)}",`;
|
||||
}
|
||||
result += '}, ';
|
||||
result += `runtime.getOpcodeFunction("${util.safe(opcode)}")`;
|
||||
result += `)`; // no semicolon here: that would break inputs
|
||||
result += `}, runtime.getOpcodeFunction("${util.safe(opcode)}"))`;
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user