Skip to content

Commit

Permalink
Fixed error line detection caused by prior refactoring of IDE code.
Browse files Browse the repository at this point in the history
  • Loading branch information
boxgaming committed Jan 21, 2024
1 parent 591cc42 commit eee13df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<div>
<img id="logo" src="logo.png" onclick="window.open('https://github.com/boxgaming/qbjs/wiki', '_blank')">
<p>QBJS - QBasic for the Web!</p>
<p>Version: 0.8.0</p>
<p>Version: <a href="https://github.com/boxgaming/qbjs/releases" target="_blank">0.8.1</a></p>
<p></p>
<p>
QBJS brings the fun and accessibility of QBasic to the browser.<br/>
Expand All @@ -158,5 +158,5 @@
<script language="javascript" src="qb.js?v=0.8.0"></script>
<script language="javascript" src="qb2js.js?v=0.8.0"></script>
<script language="javascript" src="githelp.js?v=0.8.0"></script>
<script language="javascript" src="qbjs-ide.js?v=0.8.0"></script>
<script language="javascript" src="qbjs-ide.js?v=0.8.1"></script>
</html>
2 changes: 1 addition & 1 deletion qbjs-ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ var IDE = new function() {
var stack = error.stack.split("\n");
for (var i=0; i < stack.length; i++) {
// chrome
if (stack[i].trim().indexOf("(eval at runProgram") > -1) {
if (stack[i].trim().indexOf("(eval at _runProgram") > -1) {
if (cdepth == stackDepth) {
var idx = stack[i].indexOf("<anonymous>:");
var pos = stack[i].substring(idx + 12);
Expand Down

0 comments on commit eee13df

Please sign in to comment.