Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit bdff436162943f7665b645c4716e29a994855806
Author: mtso <[email protected]>
Date:   Sat Aug 14 17:24:33 2021 -0700

    Change module resolution

commit 95f2189c649ffe170f8eb5f59ea2586ab1325aeb
Author: mtso <[email protected]>
Date:   Fri Aug 13 10:28:38 2021 -0700

    Improve builtins

commit ed8cdacc56b9490eebfb600398313a0de4b0f568
Author: mtso <[email protected]>
Date:   Thu Aug 12 21:26:25 2021 -0700

    Update tail-call opt and improve builtins for wasm loading
  • Loading branch information
mtso committed Aug 15, 2021
1 parent 72c625f commit e842c11
Show file tree
Hide file tree
Showing 41 changed files with 576 additions and 10,756 deletions.
4 changes: 4 additions & 0 deletions bin/obi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

script_dir=$(dirname "$0")
deno run --quiet --allow-all --unstable ${script_dir}/../obi.ts $@
2 changes: 1 addition & 1 deletion docs/fileserver.obi
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun split(source, needle) {
};

pieces.(pieceIdx) = strslice(source, start, len);
pieces.len = pieceIdx;
pieces.len = pieceIdx + 1;
return pieces;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/server.obi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fun split(source, needle) {
};

pieces.(pieceIdx) = strslice(source, start, len);
pieces.len = pieceIdx;
pieces.len = pieceIdx + 1;
return pieces;
}

Expand Down
17 changes: 17 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,20 @@ Values
- tables
- byte arrays (no literal representation, must instantiate with
new_buffer(<cap>))

# testing?

```obi
pub fun __test__() {
test := mod("std/test.obi");
suite := test.new_suite();
suite.test("parses") fun(t) {
string := json.stringify([foo = "foo"]);
t.assertEquals("{\"foo\":\"foo\"}", string);
};
suite.testAsync("parses") fun(t) {
t.done();
};
suite.run();
};
```
4 changes: 0 additions & 4 deletions obi

This file was deleted.

Loading

0 comments on commit e842c11

Please sign in to comment.