提交 eea9c23f 编写于 作者: J Jason Park

merge

上级 eb24b238
......@@ -90,6 +90,9 @@
<a href="https://github.com/chartjs/Chart.js">
<button class="indent">chartjs/Chart.js</button>
</a>
<a href="https://github.com/Daniel15/babel-standalone">
<button class="indent">Daniel15/babel-standalone</button>
</a>
<a href="https://github.com/showdownjs/showdown">
<button class="indent">showdownjs/showdown</button>
</a>
......@@ -147,6 +150,7 @@
<script src="public/lib/showdown.min.js"></script>
<script src="public/lib/ace/ace.js"></script>
<script src="public/lib/ace/ext-language_tools.js"></script>
<script src="public/lib/babel.min.js"></script>
<script src="public/lib/sigma/sigma.min.js"></script>
<script src="public/lib/sigma/plugins/sigma.plugins.dragNodes.min.js"></script>
<script src="public/lib/Chart-2.1.3.min.js"></script>
......
......@@ -9,7 +9,7 @@ const execute = (tracerManager, code, dataLines) => {
lines.forEach((line, i) => {
newLines.push(line.replace(/(.+\. *_wait *)(\( *\))/g, `$1(${i - dataLines})`));
});
eval(newLines.join('\n'));
eval(Babel.transform(newLines.join('\n'), {presets: ['es2015']}).code);
tracerManager.visualize();
} catch (err) {
return err;
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册