Sami Vaarala
|
98c70bc1fb
|
Improve misleading error message from duk cmdline
|
11 years ago |
Sami Vaarala
|
629e68bf26
|
cmdline bug fix: avoid complaining about 'error in reading input' when executing code from a file
|
11 years ago |
Sami Vaarala
|
53cc8b485a
|
'duk' cmdline util improvements: add -i to force interactive mode even after executing files, remove '-' argument support which was broken
|
11 years ago |
Sami Vaarala
|
d2781cc043
|
jsonx -> jx rename
|
11 years ago |
Sami Vaarala
|
6571ce9e85
|
fix example makefile debug option examples (commented out)
|
11 years ago |
Sami Vaarala
|
26a028fe19
|
add a few missing casts (g++ errors)
|
11 years ago |
Sami Vaarala
|
d79f10bd99
|
fix eventloop example callback argument handling (fixes #3)
|
11 years ago |
Sami Vaarala
|
0a7c56e1e2
|
change eventloop example to use the function/number list helpers
|
11 years ago |
Sami Vaarala
|
b91f6e7124
|
fix protected/safe call sites in code examples to omit errhandler_index
|
11 years ago |
Sami Vaarala
|
724dbd8080
|
improve cmdline stack printing, so that there is no fatal error even if getting the 'stack' property fails
|
11 years ago |
Sami Vaarala
|
6145c50e3f
|
add duk_safe_to_string() usage to duk_cmdline so that double error coercions work
|
11 years ago |
Sami Vaarala
|
708c370219
|
eventloop cleanups for buffer handling, now using buffer virtual props
|
11 years ago |
Sami Vaarala
|
3c3561e4a1
|
add some missing makefiles
|
11 years ago |
Sami Vaarala
|
f9dc55d432
|
downgrade a few XXX, add a few genuine FIXMEs
|
11 years ago |
Sami Vaarala
|
bacc96e5f6
|
eventloop cleanups
|
11 years ago |
Sami Vaarala
|
b7a21f0e6d
|
document more limitations
|
11 years ago |
Sami Vaarala
|
e8edf13d04
|
sockets into c eventloop example
|
11 years ago |
Sami Vaarala
|
4e78764771
|
change Ecmascript eventloop to a singleton (no explicit instantiation which is pointless), other consistency fixes
|
11 years ago |
Sami Vaarala
|
d0c7560193
|
init trivia, better convenience api use
|
11 years ago |
Sami Vaarala
|
66fd31d853
|
example README.txt heading trivia
|
11 years ago |
Sami Vaarala
|
ce6a0f5b15
|
client and server socket examples
|
11 years ago |
Sami Vaarala
|
6c3e272d7c
|
async connect handling
|
11 years ago |
Sami Vaarala
|
10b2829ca0
|
incomplete socket stuff for eventloop example
|
11 years ago |
Sami Vaarala
|
148d3b6a04
|
eventloop c binding FIXMEs cleaned up
|
11 years ago |
Sami Vaarala
|
5a9a6ac353
|
use eval.bind() instead of workaround as master branch has a fix to eval caller assumption
|
11 years ago |
Sami Vaarala
|
5a309c07ba
|
merge Ecmascript EventLoop and TimerManager classes to align better with the C example; exit primitive for easier valgrinding
|
11 years ago |
Sami Vaarala
|
bfb7686fba
|
use global stash in eventloop example
|
11 years ago |
Sami Vaarala
|
2b80bc56c5
|
implement a C eventloop example comparable to the Ecmascript one (still no sockets); simplify the Ecmascript eventloop version also; C code cleanup and reorganization
|
11 years ago |
Sami Vaarala
|
c5daede8f7
|
improve eventloop.js example to use a sorted timer list for more efficient processing, some more example code
|
11 years ago |
Sami Vaarala
|
8f1c1eb1f0
|
example README.txt files
|
11 years ago |
Sami Vaarala
|
f2db9991dc
|
eventloop example drafting
|
11 years ago |
Sami Vaarala
|
1504bbb151
|
move unused cmdline modules (fileiso, socket, ncurses) to eventloop example, which is perhaps a more useful place for them
|
11 years ago |
Sami Vaarala
|
5276850b4c
|
compile warning fix
|
11 years ago |
Sami Vaarala
|
c99603e558
|
fix eof handling for duk cmdline in non-interactive mode
|
11 years ago |
Sami Vaarala
|
2a4e9ab7ea
|
add an eval example (used by emscriptenduktest)
|
11 years ago |
Sami Vaarala
|
7b14c5d05d
|
make duk cmdline default memory limit be high, and use -r to reduce it
|
11 years ago |
Sami Vaarala
|
dc00f8812e
|
avoid ToString() coercion of final Program result in non-interactive mode, as it may itself throw a TypeError (e.g. failed to coerce with [[DefaultValue]])
|
11 years ago |
Sami Vaarala
|
c79cf5c82c
|
provide an explicit 'this' binding when calling program code in duk_cmdline, otherwise 'this' binding is incorrect when global code is strict
|
11 years ago |
Sami Vaarala
|
c9ce15cf5b
|
rename __duk__ to Duktape in examples
|
11 years ago |
Sami Vaarala
|
0a4c3b59ea
|
__duk__.build removal related trivia
|
11 years ago |
Sami Vaarala
|
608a2f8ebf
|
force DUK_CMDLINE_BAREBONES on Windows to avoid header issues
|
11 years ago |
Sami Vaarala
|
80fd26d51e
|
add duktape version to cmdline greet
|
11 years ago |
Sami Vaarala
|
db30481a5a
|
cmdline barebones variant warning cleanup
|
11 years ago |
Sami Vaarala
|
c552717fa6
|
tweak example makefiles with DUK_OPT_xxx examples
|
11 years ago |
Sami Vaarala
|
7dbdc39f48
|
DUK_PROFILE related build etc trivia; Makefile not fully functional
|
11 years ago |
Sami Vaarala
|
7bc480d8c1
|
makefile tweaks: add -lncurses whenever -lreadline occurs, because readline requires ncurses on some systems (e.g. RHEL)
|
11 years ago |
Sami Vaarala
|
c8d3db805f
|
make cmdline tool print 'Cleaning up...' only in interactive mode
|
11 years ago |
Sami Vaarala
|
344a46e728
|
make cmdline use 'stack' through the accessor
|
11 years ago |
Sami Vaarala
|
ce8dbe4d10
|
add traceback dumping to cmdline tool
|
11 years ago |
Sami Vaarala
|
dd4975cf92
|
add DUK_CMDLINE_BAREBONES (commented out) into the example makefile; make duktape cmdline banner indicate that readline is disabled
|
11 years ago |