Remove "(bob)" author prefix from all TODO comments in benchmark/method_call.wren, include/wren.h, src/main.c, src/wren_common.h, src/wren_compiler.c, src/wren_core.c, src/wren_value.c, src/wren_value.h, and src/wren_vm.c. Update the TODO_PATTERN regex in metrics script to match the new format without author parentheses. Also refactor test file counting in metrics to use os.walk with fnmatch for recursive directory traversal instead of glob.iglob.
20 lines
376 B
Plaintext
20 lines
376 B
Plaintext
{
|
|
var f = null
|
|
|
|
{
|
|
var a = "a"
|
|
f = fn io.write(a)
|
|
}
|
|
|
|
{
|
|
// Since a is out of scope, the local slot will be reused by b. Make sure
|
|
// that f still closes over a.
|
|
var b = "b"
|
|
f.call // expect: a
|
|
}
|
|
}
|
|
|
|
// TODO: Closing over this.
|
|
// TODO: Close over fn/method parameter.
|
|
// TODO: Maximum number of closed-over variables (directly and/or indirect).
|