1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

Everywhere: Rename WrapperGenerator to BindingsGenerator

This code generator no longer creates JS wrappers for platform objects
in the old sense, instead they're JS objects internally themselves.
Most of what we generate now are prototypes - which can be seen as
bindings for the internal C++ methods implementing getters, setters, and
methods - as well as object constructors, i.e. bindings for the internal
create_with_global_object() method.

Also tweak the naming of various CMake glue code existing around this.
This commit is contained in:
Linus Groh 2022-09-21 18:22:16 +01:00
parent 4270ede7c4
commit edfef8e2f5
14 changed files with 219 additions and 219 deletions

View file

@ -63,7 +63,7 @@ describe("HTMLTableElement", () => {
let table = page.document.createElement("table");
expect(table).not.toBeNull();
// We hardcode the default value in a few places, due to the WrapperGenerator's bug with default values
// We hardcode the default value in a few places, due to the BindingsGenerator's bug with default values
const defaultValue = -1;
expect(table.rows.length).toBe(0);
@ -96,7 +96,7 @@ describe("HTMLTableElement", () => {
let table = page.document.createElement("table");
expect(table).not.toBeNull();
// We hardcode the default value in a few places, due to the WrapperGenerator's bug with default values
// We hardcode the default value in a few places, due to the BindingsGenerator's bug with default values
const defaultValue = -1;
// deleteRow with an index > number of rows will throw