feat: add Directory.list() foreign method and async directory listing to io module

This commit is contained in:
Bob Nystrom
2015-12-27 04:42:53 +00:00
17 changed files with 175 additions and 41 deletions
+1
View File
@@ -182,6 +182,7 @@ class Test:
# Make sure the stack trace has the right line. Skip over any lines that
# come from builtin libraries.
match = False
stack_lines = error_lines[line + 1:]
for stack_line in stack_lines:
match = STACK_TRACE_PATTERN.search(stack_line)
+3
View File
@@ -206,12 +206,15 @@ $(LIBUV): $(LIBUV_DIR)/build/gyp/gyp util/libuv.py
# Wren modules that get compiled into the binary as C strings.
src/optional/wren_opt_%.wren.inc: src/optional/wren_opt_%.wren util/wren_to_c_string.py
@ printf "%10s %-30s %s\n" str $<
@ ./util/wren_to_c_string.py $@ $<
src/vm/wren_%.wren.inc: src/vm/wren_%.wren util/wren_to_c_string.py
@ printf "%10s %-30s %s\n" str $<
@ ./util/wren_to_c_string.py $@ $<
src/module/%.wren.inc: src/module/%.wren util/wren_to_c_string.py
@ printf "%10s %-30s %s\n" str $<
@ ./util/wren_to_c_string.py $@ $<
.PHONY: all cli test vm
-2
View File
@@ -50,7 +50,5 @@ def main():
with open(args.output, "w") as f:
f.write(c_source)
print(" str " + args.input)
main()