mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.3 KiB
35 lines
1.3 KiB
--- !ditz.rubyforge.org,2008-03-06/issue
|
|
title: should Duktape.line() instead be a helper which allows callstack introspection?
|
|
desc: ""
|
|
type: :task
|
|
component: duk
|
|
release: v0.10
|
|
reporter: sva <sami.vaarala@iki.fi>
|
|
status: :unstarted
|
|
disposition:
|
|
creation_time: 2014-02-18 15:29:56.019029 Z
|
|
references: []
|
|
|
|
id: a944889263f48455d533d1162bfeeab1ea121741
|
|
log_events:
|
|
- - 2014-02-18 15:29:56.194660 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- created
|
|
- ""
|
|
- - 2014-02-18 21:53:44.505216 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- commented
|
|
- |-
|
|
In addition to callstack introspection one would also need the ability to
|
|
get a thread's resumer to be able to enumerate the whole coroutine chain.
|
|
|
|
Perhaps Duktape.act() should be merged with Duktape.info() into a shared
|
|
function to introspect Duktape values. For threads, an optional second
|
|
argument could request for a certain callstack entry to be introspected.
|
|
The thread fields could provide the resumer reference.
|
|
|
|
If this were done, then Duktape.info() array format would probably need
|
|
to be something more verbose and more easily extensible. Other value
|
|
types also have additional interesting fields from an introspection
|
|
perspective. For instance, buffer values have a buffer fixed/dynamic
|
|
type and a potential spare.
|
|
|