Start extract JS structs into their own files

Renames JsContext -> js.Context, JsObject -> js.Object and JsThis -> js.This
which is more consistent with the other types. The JsObject -> js.Object is
the reason so many files were touched.

This is still a [messy] transition, with more refactoring planned to clean it
up.
This commit is contained in:
Karl Seguin
2025-10-02 12:46:49 +08:00
parent 66f82fd9cc
commit dab8012b6a
44 changed files with 3991 additions and 3926 deletions

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<script src="../testing.js"></script>
<script id=readable_stream>
<!-- <script id=readable_stream>
const stream = new ReadableStream({
start(controller) {
controller.enqueue("hello");
@@ -16,7 +16,7 @@
testing.expectEqual("hello", data.value);
testing.expectEqual(false, data.done);
});
</script>
</script> -->
<script id=readable_stream_binary>
const input = new TextEncoder().encode('over 9000!');