File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ function framecode_lines(src::CodeInfo)
291
291
buf = IOBuffer ()
292
292
show (buf, src)
293
293
code = filter! (split (String (take! (buf)), ' \n ' )) do line
294
- ! (line == " CodeInfo(" || line == " )" || isempty (line))
294
+ ! (line == " CodeInfo(" || line == " )" || isempty (line) || occursin ( " within ` " , line) )
295
295
end
296
296
code .= replace .(code, Ref (r" \$\( QuoteNode\( (.+?)\)\) " => s "\1 " ))
297
297
return code
@@ -371,7 +371,7 @@ Evaluate `code` in the context of `frame`, updating any local variables
371
371
(including type parameters) that are reassigned in `code`, however, new local variables
372
372
cannot be introduced.
373
373
374
- ```jldoctest; setup=(using JuliaInterpreter; empty!(JuliaInterpreter.junk))
374
+ ```jldoctest
375
375
julia> foo(x, y) = x + y;
376
376
377
377
julia> frame = JuliaInterpreter.enter_call(foo, 1, 3);
@@ -383,7 +383,7 @@ julia> JuliaInterpreter.eval_code(frame, "x = 5");
383
383
384
384
julia> JuliaInterpreter.finish_and_return!(frame)
385
385
8
386
- ````
386
+ ```
387
387
388
388
When variables are captured in closures (and thus gets wrapped in a `Core.Box`)
389
389
they will be automatically unwrapped and rewrapped upon evaluating them:
You can’t perform that action at this time.
0 commit comments