mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
12 years ago
2 changed files with 50 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: duk_push_this() refactoring with helpers |
|||
desc: |- |
|||
Many built-in functions do some form of CheckObjectCoercible() check, |
|||
followed by coercion to object or string (or something else). These |
|||
are currently implemented explicitly, wasting code space. |
|||
|
|||
Implement helper(s) for the common combinations and refactor calling |
|||
code to use the helpers. |
|||
type: :task |
|||
component: duk |
|||
release: v0.5 |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-03-10 20:50:53.876488 Z |
|||
references: [] |
|||
|
|||
id: 7a29c88f7e77ef76ab9c52fbcb7153f978e35810 |
|||
log_events: |
|||
- - 2013-03-10 20:50:54.161335 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
@ -0,0 +1,26 @@ |
|||
--- !ditz.rubyforge.org,2008-03-06/issue |
|||
title: add a shared helper for string char-by-char string transformation |
|||
desc: |- |
|||
Such a helper is needed by e.g. escape() which processes individual |
|||
characters, emitting one or more output characters. There are other |
|||
escape functions with similar semantics, so they could share a helper |
|||
which handles the mechanics of iterating a source string and emitting |
|||
bytes to an output buffer. |
|||
|
|||
Some string transformation functions (like unescape()) need some |
|||
lookahead, so they need a different model. |
|||
type: :task |
|||
component: duk |
|||
release: |
|||
reporter: sva <sami.vaarala@poplatek.fi> |
|||
status: :unstarted |
|||
disposition: |
|||
creation_time: 2013-03-08 22:55:37.885811 Z |
|||
references: [] |
|||
|
|||
id: b48ebaa7734493c1f088e261318566bee1f1be1c |
|||
log_events: |
|||
- - 2013-03-08 22:55:38.530826 Z |
|||
- sva <sami.vaarala@poplatek.fi> |
|||
- created |
|||
- "" |
Loading…
Reference in new issue