fix: integrate 14 approved fix PRs (668,671,673,675,678-681,685-690) (#705)
* fix(javascript): preserve array index positions Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): respect object property overwrite order Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * test(javascript): cover uncertain spread discriminants Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): keep nonfinite values outside JSON lattice Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(dotnet): keep non-CIL method implementations unknown Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * test(package): separate CIL reconstruction from native imports Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): invalidate values on nontrivial binding writes Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(artifacts): align native DMG mount and detach lifecycle Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): retain all literal worker import arguments Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(native): preserve final demangled symbol whitespace Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(dotnet): preserve C identifier underscores in native matching Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): respect metadata key and overwrite semantics Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): keep optional parameter input unknown Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(dotnet): report observed method metadata changes Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * docs(dotnet): synchronize generated conformance skill digest Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): reject malformed indexed source-map offsets Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(native): preserve numeric-looking Mach-O identifiers Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * docs: regenerate catalogs for integrated fix batch * docs: regenerate catalogs after merging main (#702) --------- Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> Co-authored-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -323,3 +323,49 @@ it("keeps bare module locations unresolved without inventing URL-relative paths"
|
||||
)?.resolved_url,
|
||||
).toBe(`${origin}/assets/worker.js`);
|
||||
});
|
||||
|
||||
it("retains each literal importScripts argument in source order", () => {
|
||||
const result = analyzeCapturedWebBundle(
|
||||
inspection(
|
||||
'importScripts("first.js", dynamicValue, "second.js", "first.js");',
|
||||
),
|
||||
);
|
||||
expect(
|
||||
result.observations.chunks.edges
|
||||
.filter(({ kind }) => kind === "worker_import")
|
||||
.map(({ specifier }) => specifier),
|
||||
).toEqual(["first.js", "second.js"]);
|
||||
});
|
||||
|
||||
describe("web metadata key semantics", () => {
|
||||
it("keeps computed metadata keys and overwrite order conservative", () => {
|
||||
const result = analyzeCapturedWebBundle(
|
||||
inspection(`
|
||||
const path = "description";
|
||||
const routes = [{ [path]: "/not-a-route" }, { ["path"]: "/real" }];
|
||||
document.modelContext.registerTool({
|
||||
name: "old", name: "new",
|
||||
inputSchema: { properties: { [name]: {}, literal: {} } }
|
||||
});
|
||||
document.modelContext.registerTool({ name: "old", ...dynamic });
|
||||
document.modelContext.registerTool({ name: "old", [name]: "dynamic" });
|
||||
document.modelContext.registerTool({ name: "old", get name() {} });
|
||||
document.modelContext.registerTool({ ...dynamic, ["name"]: "restored" });
|
||||
document.modelContext.registerTool({ name: "valid", [""]: 0 });
|
||||
`),
|
||||
);
|
||||
|
||||
expect(result.observations.routes.map(({ value }) => value)).toEqual([
|
||||
"/real",
|
||||
]);
|
||||
expect(result.observations.webmcp_declarations).toEqual([
|
||||
expect.objectContaining({
|
||||
name: "new",
|
||||
schema_property_names: ["literal"],
|
||||
}),
|
||||
expect.objectContaining({ name: null }),
|
||||
expect.objectContaining({ name: "restored" }),
|
||||
expect.objectContaining({ name: "valid" }),
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user