Compare commits
2 commits
b0cc1aa457
...
5e8d81c2a6
Author | SHA1 | Date | |
---|---|---|---|
5e8d81c2a6 | |||
c6c98a254c |
2 changed files with 3 additions and 3 deletions
2
qjs.c
2
qjs.c
|
@ -501,7 +501,7 @@ int main(int argc, char **argv)
|
|||
" return y;\n"
|
||||
"}\n"
|
||||
"globalThis.require = require;\n"
|
||||
"globalThis.global = global;\n";
|
||||
"globalThis.global = globalThis;\n";
|
||||
eval_buf(ctx, reqPF, strlen(reqPF), "<input>", JS_EVAL_TYPE_MODULE);
|
||||
|
||||
for(i = 0; i < include_count; i++) {
|
||||
|
|
4
repl.js
4
repl.js
|
@ -1226,9 +1226,9 @@ import * as os from "os";
|
|||
function cmd_start() {
|
||||
if (!config_numcalc) {
|
||||
if (has_jscalc)
|
||||
std.puts('QJSCalc - Type "\\h" for help\n');
|
||||
std.puts('QJSCalc (DoneJS Edition) - Type "\\h" for help\n');
|
||||
else
|
||||
std.puts('QuickJS - Type "\\h" for help\n');
|
||||
std.puts('QuickJS (DoneJS Edition) - Type "\\h" for help\n');
|
||||
}
|
||||
if (has_bignum) {
|
||||
log2_10 = Math.log(10) / Math.log(2);
|
||||
|
|
Loading…
Reference in a new issue