Skip to content

Commit 779ccc1

Browse files
authored
Update interpreter.html
1 parent a0dd4e5 commit 779ccc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run/interpreter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3>Select a folder to run Bitcoin Scripts</h3>
124124
<button id="selectDirButton" autofocus>Select Directory</button>
125125
</body>
126126
<script type="module">
127-
import {preprocessJS} from '../scripts/compile.js'
127+
import {preprocessJS, compileScript} from '../scripts/compile.js'
128128
import init, {run_script, script_asm_to_hex} from '../libs/bitcoin_scriptexec.js';
129129
import { sha256 } from '../libs/sha256.js';
130130
import {hashText, toURI } from '../libs/common.js';
@@ -221,7 +221,7 @@ <h3>Select a folder to run Bitcoin Scripts</h3>
221221

222222
function preprocess(text, fileName) {
223223
if (fileName.endsWith('.js'))
224-
return preprocessJS(text)
224+
return compileScript(text)
225225
else
226226
return text
227227
}

0 commit comments

Comments
 (0)