mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
11 years ago
14 changed files with 229 additions and 8 deletions
@ -0,0 +1,21 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: uclibc math library may be missing fmin(), fmax(), round() |
|||
desc: |- |
|||
Perhaps related? |
|||
|
|||
http://comments.gmane.org/gmane.comp.lib.uclibc.general/14630 |
|||
type: :task |
|||
component: duk |
|||
release: v0.7 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-31 22:53:04.631136 Z |
|||
references: [] |
|||
|
|||
id: 1a994fda22e5d7974ec381378e799cfdefd7b680 |
|||
log_events: |
|||
- - 2013-08-31 22:53:04.804116 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,28 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: clean up value stack reserve + extra handling |
|||
desc: |- |
|||
Currently there are only internal constants for value stack reservation. |
|||
The duktape.h header should expose at least the reserve that a user can |
|||
expect to have upon function entry. |
|||
|
|||
Also, currently on entry to a Duktape/C function only DUK_VALSTACK_INTERNAL_EXTRA |
|||
value stack reserve is automatically allocated. If this constant is really |
|||
for internal use only, there is actually no user reservation by default. |
|||
This should be fixed by adding the user reserve to the value stack check |
|||
at least when entering a Duktape/C function (this isn't necessary for |
|||
Ecmascript functions). |
|||
type: :task |
|||
component: duk |
|||
release: v0.7 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-23 23:17:56.338437 Z |
|||
references: [] |
|||
|
|||
id: 1f04e283b06d50a65c5f7db22a6393e9e47f4438 |
|||
log_events: |
|||
- - 2013-08-23 23:17:56.511375 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,18 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: add an API primitive to get a heap ptr for debugging? |
|||
desc: Something like duk_get_voidptr(). |
|||
type: :task |
|||
component: duk |
|||
release: v0.7 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-27 21:16:46.442040 Z |
|||
references: [] |
|||
|
|||
id: 306281b62690fe31b0f46be685d7ffe47efb05da |
|||
log_events: |
|||
- - 2013-08-27 21:16:46.622933 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,22 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: DUK_PROFILE autodetection should choose 64-bit profile if packed tval not possible |
|||
desc: "" |
|||
type: :task |
|||
component: duk |
|||
release: v0.6 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :closed |
|||
disposition: :fixed |
|||
creation_time: 2013-08-28 20:19:18.786432 Z |
|||
references: [] |
|||
|
|||
id: 3dea7af8c503a9b25f3e0fec0ae887ef11b7f80f |
|||
log_events: |
|||
- - 2013-08-28 20:19:18.974048 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
|||
- - 2013-08-28 20:28:49.871763 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- closed with disposition fixed |
|||
- "" |
@ -0,0 +1,50 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: clean up execution error (e.g. duk_pcall) return codes |
|||
desc: |- |
|||
Separate between "error from call" and "error setting up call"? |
|||
|
|||
If this is distinguished in the return code of the call, all call sites |
|||
will have to deal with it. |
|||
|
|||
One approach is to push an error on the stack even in "error setting |
|||
up call" case, but allow the caller to detect the case by inspecting |
|||
the error object. For instance, make the error object an instance of |
|||
a special error like APIError and add an API call to detect error type, |
|||
like:: |
|||
|
|||
if (duk_get_error_code(ctx, -1) == DUK_ERR_API_ERROR) { |
|||
... |
|||
} |
|||
|
|||
What to do if the input arguments and stack are incompatible, and |
|||
return stack semantics cannot be met? For instance, if there are |
|||
not enough arguments on the value stack to match a "nargs" parameter, |
|||
we can't pop off enough arguments. |
|||
|
|||
Options include: |
|||
|
|||
1. Disregard these as programmer errors and call the fatal handler. |
|||
|
|||
2. Throw an ordinary error. If the duk_pcall/duk_safe_call was called |
|||
from a context without error catching, the error becomes fatal |
|||
anyway. But this way, there is a chance that an outer error handler |
|||
will catch the error. |
|||
|
|||
3. Return a special error code indicating that the stack is in an |
|||
inconsistent (unexpected) state. All call sites would then need |
|||
to take this into account. |
|||
type: :task |
|||
component: duk |
|||
release: v0.7 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-27 21:15:20.899635 Z |
|||
references: [] |
|||
|
|||
id: 729e2709818e510a45e64eacf68326be3e7542a2 |
|||
log_events: |
|||
- - 2013-08-27 21:15:21.072680 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,18 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: initial duktape.org website |
|||
desc: "" |
|||
type: :task |
|||
component: duk |
|||
release: v0.6 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-27 20:44:33.391376 Z |
|||
references: [] |
|||
|
|||
id: c5ecb991207e793c61faa230041bc88e2277fd95 |
|||
log_events: |
|||
- - 2013-08-27 20:44:33.548481 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,18 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: provide an API primitive for garbage collection |
|||
desc: "" |
|||
type: :task |
|||
component: duk |
|||
release: v0.7 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-27 22:18:20.410420 Z |
|||
references: [] |
|||
|
|||
id: d5ce0eae173ddc2e9e4030384418f63b690039df |
|||
log_events: |
|||
- - 2013-08-27 22:18:20.687276 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,22 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: where should platform specific headers like time.h be included? |
|||
desc: |- |
|||
Currently duk_builtin_date.c includes these, based on platform defines. |
|||
|
|||
However, the headers depend on e.g. _XOPEN_SOURCE being defined, and |
|||
that should be defined before any system headers are included. |
|||
type: :task |
|||
component: duk |
|||
release: v0.7 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-08-28 20:45:31.606103 Z |
|||
references: [] |
|||
|
|||
id: ec8923b08f28b40cd3e7c2bc6b3e59cf2ad8656a |
|||
log_events: |
|||
- - 2013-08-28 20:45:31.795481 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
Loading…
Reference in new issue