Skip to content

Commit

Permalink
re-enable some [trace]
Browse files Browse the repository at this point in the history
untodo test, workaround proxy lookup failure.
  • Loading branch information
coke committed Oct 30, 2009
1 parent 27de49b commit 87ed02f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions runtime/builtin/trace.pir
Expand Up @@ -5,9 +5,6 @@
.sub '&trace'
.param pmc argv :slurpy

# comment this line to reactivate basic (BUT VERY SLOW) tracing
.return()

.local string subcommand
subcommand = shift argv
if subcommand != 'variable' goto unimplemented
Expand Down
5 changes: 2 additions & 3 deletions src/class/tracearray.pir
Expand Up @@ -61,9 +61,8 @@ skip:
$P1()
working = 0
delegate:
# Delegate to our parent..
# Finally, delegate to our parent's set_string
$P0 = getattribute self, ['TclArray'], 'proxy'
# Delegate to our first PMC ancestor.
$P0 = getattribute self, ['Hash'], 'proxy'
.local pmc result
result = $P0[key]
.return (result)
Expand Down
2 changes: 1 addition & 1 deletion t/cmd_trace.t
Expand Up @@ -23,4 +23,4 @@ set a(1) 2
trace variable a r tracer
set a(1) 3
is $a(1) 3 {set should still work}
is $some_var x {trigger should have hit} {TODO "disabled for speed reasons"}
is $some_var x {trigger should have hit}

0 comments on commit 87ed02f

Please sign in to comment.