We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5e3b0 commit 41e92afCopy full SHA for 41e92af
src/createRuby.js
@@ -47,16 +47,16 @@ export default async function createRuby() {
47
48
return vm.eval(rubySource).toString();
49
},
50
- // A function to print the current YARV execution
51
- seaOfNodes(source) {
+ // A function to print the current YARV execution
+ seaOfNodes(source) {
52
const jsonSource = JSON.stringify(JSON.stringify(source));
53
const rubySource = `
54
- iseq = RubyVM::InstructionSequence.compile(JSON.parse(${jsonSource}))
55
- iseq = SyntaxTree::YARV::InstructionSequence.from(iseq.to_a)
56
- iseq.to_son.to_mermaid
57
- `;
+ iseq = RubyVM::InstructionSequence.compile(JSON.parse(${jsonSource}))
+ iseq = SyntaxTree::YARV::InstructionSequence.from(iseq.to_a)
+ iseq.to_son.to_mermaid
+ `;
58
59
60
- }
+ }
61
};
62
0 commit comments