Gonzalo Diethelm
c522541fb9
Grok DUK_CONSOLE_TO_STDOUT DUK_CONSOLE_TO_STDERR
Add these two constants, which can be passed as part of the flags to
duk_console_init(). Their meanings are:
- DUK_CONSOLE_TO_STDOUT: all console output goes to stdout
- DUK_CONSOLE_TO_STDERR: all console output goes to stderr
- default, no flags: output for warn and above goes to stderr, output
for info and below goes to stdout
The constants are used both for the flags parameter to
duk_console_init(), as well as for the flags saved in magic and passed
to duk__console_log_helper(); that way we avoid defining additional,
similar constants for these two different usages.
7 years ago
Sami Vaarala
4cc27c7461
Merge pull request #1888 from svaarala/number-tofixed-coercion-order
Change Number.prototype.toFixed() this/argument coercion order to match ES2015
7 years ago
Sami Vaarala
b84f4eaa04
Merge pull request #1889 from svaarala/releases-eventloop-cleanups
Releases: eventloop cleanups
7 years ago
Sami Vaarala
4765b877a7
Releases: eventloop cleanups
7 years ago
Sami Vaarala
934a0747a8
Merge pull request #1884 from gonzus/master
Cleanup examples/eventloop/c_eventloop.c a bit more
7 years ago
Gonzalo Diethelm
a833b69fc9
Control debugging statements with a macro
File examples/eventloop/c_eventloop.c has a bunch of debugging
statements that print information to stderr; these were all protected
with #if 0 / #endif.
This commit adds a single DUKTAPE_EVENTLOOP_DEBUG macro to easily turn
all of them on / off.
7 years ago
Sami Vaarala
ad57aa28a5
Releases: Number.prototype.toFixed() validation
7 years ago
Sami Vaarala
9f5493ea62
Number.prototype.toFixed() testcase fix
7 years ago
Sami Vaarala
0b557eefd9
Change Number.prototype.toFixed() coercion order
7 years ago
Gonzalo Diethelm
5504db0506
Add header for consistent compilation
File examples/eventloop/c_eventloop.c did not have a corresponding
header, so it was difficult to check the prototypes when compiling /
linking against this file.
This commit adds header examples/eventloop/c_eventloop.h
7 years ago
Sami Vaarala
eff78f951e
Merge pull request #1887 from svaarala/improve-number-tofixed-test
Add spec note to Number.prototype.toFixed() test
7 years ago
Sami Vaarala
dcde67eb8d
Merge pull request #1882 from svaarala/v2.2.1-release-prep
Preparations for 2.2.1 release
7 years ago
Sami Vaarala
ad1abd1698
Merge pull request #1885 from svaarala/dist-jxpretty-jsoncbor
Dist improvements for jxpretty and jsoncbor
7 years ago
Sami Vaarala
1095b391fd
Add spec note to Number.prototype.toFixed() test
7 years ago
Sami Vaarala
b9b970c36e
Release checklist improvements
7 years ago
Sami Vaarala
559bd068c1
Add 2.2.1 download link
7 years ago
Sami Vaarala
327294796b
Releases: 2.2.1 release
7 years ago
Sami Vaarala
ba7224ac12
Releases: Makefile.jsoncbor
7 years ago
Sami Vaarala
bb0a0ecd7e
Add Makefile.jsoncbor to dist
7 years ago
Sami Vaarala
cf71dc01f8
Silence compile warning in jxpretty.c
7 years ago
Sami Vaarala
cc65b78b35
Merge pull request #1881 from svaarala/v2.1.2-release-prep
Preparations for 2.1.2 release
7 years ago
Sami Vaarala
7eefc052b6
Add 2.1.2 download link
7 years ago
Sami Vaarala
b166bb635d
Releases: 2.1.2 release
7 years ago
Sami Vaarala
362519d725
Merge pull request #1880 from svaarala/releases-eventloop
Releases: eventloop improvements
7 years ago
Sami Vaarala
96b4290e08
Releases: eventloop improvements
7 years ago
Sami Vaarala
d74c22fe2c
Merge pull request #1879 from gonzus/master
Minor improvements to eventloop example
7 years ago
Gonzalo Diethelm
8c5495664a
Add myself to authors list
7 years ago
Gonzalo Diethelm
b8c48b052b
Use a constant for the "eventTimers" slot
7 years ago
Gonzalo Diethelm
ad74d7de21
Fix typo in constant name
7 years ago
Sami Vaarala
e853b5b383
Merge pull request #1877 from svaarala/promise-polyfill-trivia
Promise polyfill comment trivia
7 years ago
Sami Vaarala
9ca165080d
Promise polyfill comment trivia
7 years ago
Sami Vaarala
ab607a9434
Merge pull request #1875 from svaarala/promise-polyfill-symbol-dep
Avoid hard Symbol dependency for Promise polyfill
7 years ago
Sami Vaarala
b1b5cff028
Avoid hard Symbol dependency for Promise polyfill
7 years ago
Sami Vaarala
f88e04b686
Merge pull request #1868 from svaarala/fix-hthread-refcount-gh1845-minimal
Fix dangling pointer in thread termination
7 years ago
Sami Vaarala
4c88f53f46
Merge pull request #1869 from svaarala/fix-valgrind-push-class-string
Avoid unstable duk_tval pointer in duk_push_class_string_tval()
7 years ago
Sami Vaarala
29db730861
Avoid unstable duk_tval pointer
7 years ago
Sami Vaarala
e2415f5da1
Releases: dangling thread pointer (GH-1845)
7 years ago
Sami Vaarala
e0d33e1ec8
Fix dangling ptr in thread termination (GH-1845)
7 years ago
Sami Vaarala
b3d23a895c
Merge pull request #1866 from svaarala/example-eventloop-undefined-timeout
Allow missing delay in eventloop example setTimeout() and setInterval()
7 years ago
Sami Vaarala
fd865c013d
Releases: missing delay in eventloop example
7 years ago
Sami Vaarala
7a77522ba7
Whitespace trivia in eventloop example tests
7 years ago
Sami Vaarala
d46eb0c517
Allow missing timeout in eventloop example
7 years ago
Sami Vaarala
d07917391c
Merge pull request #1865 from svaarala/add-promise-polyfill-to-dist
Add Promise polyfill to dist
7 years ago
Sami Vaarala
63af6228a4
Releases: Promise polyfill
7 years ago
Sami Vaarala
987e2a38a6
Add Promise polyfill to dist
7 years ago
Sami Vaarala
3fafc9bd49
Merge pull request #1864 from svaarala/promise-testcase-improvements
Promise testcase improvements
7 years ago
Sami Vaarala
6afbc0dd49
Fix a few console.log() calls in existing testcases
7 years ago
Sami Vaarala
4c661ec66e
Promise polyfill improvements
* Compact Promise objects on creation and when resolved, compact job queue
entries when queued.
* Function naming and other trivia.
7 years ago
Sami Vaarala
c9bedb0c05
Add some performance tests for Promises
7 years ago
Sami Vaarala
d14b5896ec
Add some memory tests for Promises
7 years ago