)]}'
{
  "commit": "d20671c1eff6318224cfb538460ef4a18f9cd248",
  "tree": "940ba9becaf60b5ef0e33eebb07770f1e83677d2",
  "parents": [
    "17efdc2f8316c71cc9c8630274ae05e284b74595"
  ],
  "author": {
    "name": "Kevin Moore",
    "email": "kevmoo@users.noreply.github.com",
    "time": "Mon Apr 13 15:52:53 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Apr 13 15:52:53 2026 -0700"
  },
  "message": "Fix dart2wasm tests with custom HTML files (#2626)\n\nWhen running tests with `dart2wasm` and a custom HTML file, the JS bootstrap file `run_wasm_chrome.js` failed because it tried to read `dataset` from a DOM element with ID `WasmBootstrapInfo`, which is not present in custom HTML files.\n\nThis commit updates `run_wasm_chrome.js` to fallback to inferring the `.wasm` and `.mjs` URLs from `document.currentScript.src` if the `WasmBootstrapInfo` element is not found.\n\nAdded a regression test to verify the fix.\n\nFixes #2625",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b6b15fda410fcdc24c9ad0e60ff44d0e9663d2a2",
      "old_mode": 33188,
      "old_path": ".github/workflows/dart.yml",
      "new_id": "81438298bfebd6ede27584f80311b8b22dffdc8e",
      "new_mode": 33188,
      "new_path": ".github/workflows/dart.yml"
    },
    {
      "type": "modify",
      "old_id": "a8f341085e16274907058070e337ade95d3db272",
      "old_mode": 33188,
      "old_path": "integration_tests/wasm/mono_pkg.yaml",
      "new_id": "1b72742063d229662d52b3d6cbc836e9f299ce44",
      "new_mode": 33188,
      "new_path": "integration_tests/wasm/mono_pkg.yaml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e8aedc54117304790cd27e08b520b22cd487d12a",
      "new_mode": 33188,
      "new_path": "integration_tests/wasm/test/custom_html_wasm_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2848c41b77e87ca7c53252de1ca9ddbc26ceac5f",
      "new_mode": 33188,
      "new_path": "integration_tests/wasm/test/custom_html_wasm_test.html"
    },
    {
      "type": "modify",
      "old_id": "8246b5eb651a2be074bfed30c6c2c940a1978e91",
      "old_mode": 33188,
      "old_path": "pkgs/test/CHANGELOG.md",
      "new_id": "1aa6bada4d3377bccc2ccf59474f646d7f46639e",
      "new_mode": 33188,
      "new_path": "pkgs/test/CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "6e3bda02b50a97b2f389d9f37a5811894d493b8d",
      "old_mode": 33188,
      "old_path": "pkgs/test/lib/src/runner/browser/static/run_wasm_chrome.js",
      "new_id": "4dabc320d8f6f9400cce370ecbae1a18d24041fd",
      "new_mode": 33188,
      "new_path": "pkgs/test/lib/src/runner/browser/static/run_wasm_chrome.js"
    },
    {
      "type": "modify",
      "old_id": "e891be029f328d32d9aa3a943212f8f17347aa12",
      "old_mode": 33261,
      "old_path": "tool/ci.sh",
      "new_id": "fb4c566a85296bf4d8f8a3ece8f6da3d1ee70b27",
      "new_mode": 33261,
      "new_path": "tool/ci.sh"
    }
  ]
}
