Sami Vaarala
ea9a07e2da
Website fixes for module loading
9 years ago
Sami Vaarala
a9eed83b70
Update dukluv snapshot for testrunner client
9 years ago
Sami Vaarala
aee3da7e2e
Add module loading support to 'duk' example
9 years ago
Sami Vaarala
1299462478
Rombuild note for module-duktape
Modifies Duktape.modLoaded[] so that a ROM build can't use the extra as is.
9 years ago
Sami Vaarala
78928e63ad
Dist/makefile changes for 1.x module loader extra
9 years ago
Sami Vaarala
06ebef4c7d
Add warning options to extra test makefiles
9 years ago
Sami Vaarala
90ccbf66fc
Testcase fixes for module loader removal
9 years ago
Sami Vaarala
90b69bf47c
Add 1.x compatible module loader as extra
9 years ago
Sami Vaarala
4e24ba3a00
Remove module loading (require) from main sources
9 years ago
Sami Vaarala
39fb3e18ba
Merge pull request #823 from svaarala/fix-logger-extra-enumerability
Rework Duktape.Logger init
9 years ago
Sami Vaarala
43381b368d
Rework Duktape.Logger init
Use eval helper approach, set property attributes to match 1.x.
9 years ago
Sami Vaarala
d79331ff2e
Merge pull request #822 from ReneHollander/fix-api-enumarions
Fix </p> tags instead of a </li> tag in some enumerations
9 years ago
ReneHollander
d5b99dc5df
Fix </p> tags instead of a </li> tag in some enumerations
9 years ago
Sami Vaarala
217f6cdbc9
Merge pull request #818 from svaarala/module-node-cleanups
Minor cleanups to module-node extra
9 years ago
Sami Vaarala
a5d3026f6e
Releases: GH pull number for module-node
9 years ago
Sami Vaarala
8f0aaa8413
Minor module-node fixes
* Fix typo in type name (duk_int -> duk_int_t)
* Fix value stack index usage for safe call, was using positive indices
* Add exitcode to test.c so that 'make test' errors out
* Add exitcode to other extras too where applicable
9 years ago
Sami Vaarala
fa7019d94a
Merge pull request #820 from svaarala/fix-authors-format-issue
Escape "D." to avoid list interpretation
9 years ago
Sami Vaarala
84a44ecc55
Escape "D." to avoid list interpretation
Github formatting will interpret "D. xxx" as a numbered list, rendering
it as "iv. xxx". Escape the D to avoid this.
9 years ago
Sami Vaarala
f6b9384d1c
Merge pull request #819 from svaarala/cleanup-which-command
Change a few more "which" invocations to "command -v"
9 years ago
Sami Vaarala
6cac3a2bd1
Change more "which" invocations to "command -v"
9 years ago
Sami Vaarala
09a8b1f4bb
Merge pull request #809 from megous/makefile-program-path-fixes
Makefile program path fixes
9 years ago
Sami Vaarala
b08e06d6ab
Merge pull request #796 from fatcerberus/module-extra
Add a Node.js-like module loader extra
9 years ago
Bruce Pascoe
06cb7a40fc
RELEASES: module-node extra
9 years ago
Bruce Pascoe
0f22066e95
make_dist.py: add module-node extra
9 years ago
Bruce Pascoe
2b65b6db8b
README.rst for Node module loader
9 years ago
Bruce Pascoe
b60940ccb3
Manual tests for Node.js module loader
Tests can be run from the command line by saying `make test` while in the
`extras/module-node` directory of the dist.
9 years ago
Bruce Pascoe
fc78f9b947
Add a Node.js-compatible module loader extra
This loader has the following features:
* Application-provided callbacks for module resolution and loading
* Module caching based on resolved module ID
* Tolerates circular `require()` chains
* Supports `module.exports`, `module.loaded`, and `module.require`
* Supports `require.cache`
* Supports `__filename` (but not `__dirname`)
9 years ago
Ondrej Jirman
dc1958e184
Add myself to AUTHORS.rst
9 years ago
Sami Vaarala
494f7a6e7c
Merge pull request #813 from svaarala/signed-shift-fix
Fix some signed shift warnings for clang
9 years ago
Sami Vaarala
cf392c1a8e
Releases: shift warnings
9 years ago
Sami Vaarala
9656c1635a
Add volatile to intentional segfaults
9 years ago
Sami Vaarala
4277782662
Avoid some signed shift issues with clang
9 years ago
Sami Vaarala
da77e0acd2
Add clang shift warning to Makefile
9 years ago
Sami Vaarala
ca01897d36
Add misc example of shift warning
9 years ago
Sami Vaarala
f3e4286cf4
Merge pull request #816 from svaarala/remove-unused-debug-code
Remove unused debug code in duk_debug_heap.c
9 years ago
Sami Vaarala
ebc69764db
Makefile/dist changes for removed duk_debug_heap.c
9 years ago
Sami Vaarala
b5c05df692
Remove unused debug heap dump support
9 years ago
Sami Vaarala
3f011334d0
Merge pull request #810 from svaarala/rename-index-variables
Avoid variables named "index" which may cause -Wshadow warnings
9 years ago
Sami Vaarala
a42c1f8da4
Releases: 'index' shadowing
9 years ago
Sami Vaarala
2426f04d32
Code issues note on platform identifier shadowing
9 years ago
Sami Vaarala
734fc4b5c6
Avoid 'index' also in API docs
9 years ago
Sami Vaarala
5ffba13a14
Add 'index' and related to rejected identifiers
9 years ago
Sami Vaarala
3b8b9ac36b
Avoid 'index' as variable/argument name
9 years ago
Ondrej Jirman
5daed85119
Determine program paths in Makefile in a more portable way
The current Makefile does not work on Arch Linux in particular,
which uses 'node' binary name.
Make output is:
which: no nodejs in (/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/emscripten:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
*** Missing NodeJS:
$ sudo apt-get install nodejs nodejs-legacy npm # may also be 'node'
*** Missing BeautifulSoup (affects website build)
$ sudo apt-get install python-bs4
*** Errors found in system setup, see error messages above!
Makefile:327: recipe for target 'checksetup' failed
make: *** [checksetup] Error 1
Use multiple 'command -v' calls until one returns with success.
On failure 'command -v' output is empty, while 'which' may return
anything from 'nodejs not found' to 'which: no nodejs in (...)' and
print it either to stdout or to stderr.
9 years ago
Ondrej Jirman
06e4c83d00
Don't call python directly in Makefile, use $(PYTHON)
9 years ago
Sami Vaarala
d38b20a187
Merge pull request #806 from svaarala/document-code-comment-styles
Add some notes on code comment styles
9 years ago
Sami Vaarala
999bca3ed3
Merge pull request #807 from svaarala/minimal-printf-clarifications
Comment on minimal printf() and duk_push_sprintf()
9 years ago
Sami Vaarala
78587b4762
Comment on minimal printf() and duk_push_sprintf()
9 years ago
Sami Vaarala
630da6f630
Add some notes on code comment styles
9 years ago
Sami Vaarala
59c409abbc
Merge pull request #805 from dbohdan/dbohdan-in-authors
Add myself to AUTHORS.rst
9 years ago