File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11// EspruinoTools bundle (https://github.com/espruino/EspruinoTools)
22// Created with https://github.com/espruino/EspruinoWebIDE/blob/master/extras/create_espruinotools_js.sh
3- // Based on EspruinoWebIDE 0.79.14
3+ // Based on EspruinoWebIDE 0.79.15
44/**
55 Copyright 2014 Gordon Williams (gw@pur3.co.uk)
66
@@ -37371,8 +37371,10 @@ global.esmangle = require('../lib/esmangle');
3737137371 resultCode += String.fromCharCode(LEX_RAW_INT8, val&255);
3737237372 else if (val>=-32768 && val<32768)
3737337373 resultCode += String.fromCharCode(LEX_RAW_INT16, val&255, (val>>8)&255);
37374- else
37374+ else {
37375+ if (val<0) resultCode += "-"; // re-add the '-' we took off
3737537376 resultCode += tokenString;
37377+ }
3737637378 } else resultCode += tokenString;
3737737379 } else if (tokenId) {
3737837380 //console.log(JSON.stringify(tok.str)+" => "+tokenId);
You can’t perform that action at this time.
0 commit comments