helloadhavan/github_issues huggingface dataset:
Repository: denoland/deno
Pull request: fix(lsp): scope attribution for lazily loaded assets

Fixes #25999. Asset documents at https://github.com/denoland/deno/blob/2c8a0e791732ab00907ca11c3a4918ad26ead03f/cli/tsc/mod.rs#L162-L164 were not being loaded properly.

Changed files:
filename: cli/tsc/99_main_compiler.js
patch: @@ -801,13 +801,18 @@ delete Object.prototype.__proto__;
       if (logDebug) {
         debug(`host.getScriptSnapshot("${specifier}")`);
       }
-      const sourceFile = sourceFileCache.get(specifier);
-      if (sourceFile) {
-        if (!assetScopes.has(specifier)) {
-          assetScopes.set(specifier, lastRequestScope);
+      if (specifier.startsWith(ASSETS_URL_PREFIX)) {
+        const sourceFile = this.getSourceFile(
+          specifier,
+          ts.ScriptTarget.ESNext,
+        );
+        if (sourceFile) {
+          if (!assetScopes.has(specifier)) {
+            assetScopes.set(specifier, lastRequestScope);
+          }
+          // This case only occurs for assets.
+          return ts.ScriptSnapshot.fromString(sourceFile.text);
         }
-        // This case only occurs for assets.
-        return ts.ScriptSnapshot.fromString(sourceFile.text);
       }
       let sourceText = sourceTextCache.get(specifier);
       if (sourceText == undefined) {

filename: tests/integration/lsp_tests.rs
patch: @@ -6396,6 +6396,45 @@ fn lsp_cache_on_save() {
   client.shutdown();
 }
 
+// Regression test for https://github.com/denoland/deno/issues/25999.
+#[test]
+fn lsp_asset_document_dom_code_action() {
+  let context = TestContextBuilder::new().use_temp_cwd().build();
+  let temp_dir = context.temp_dir();
+  temp_dir.write(
+    "deno.json",
+    json!({
+      "compilerOptions": {
+        "lib": ["deno.window", "dom"],
+      },
+    })
+    .to_string(),
+  );
+  let mut client = context.new_lsp_command().build();
+  client.initialize_default();
+  client.did_open(json!({
+    "textDocument": {
+      "uri": temp_dir.url().join("file.ts").unwrap(),
+      "languageId": "typescript",
+      "version": 1,
+      "text": r#""#,
+    },
+  }));
+  let res = client.write_request(
+    "textDocument/codeAction",
+    json!({
+      "textDocument": { "uri": "asset:///lib.dom.d.ts" },
+      "range": {
+        "start": { "line": 0, "character": 0 },
+        "end": { "line": 0, "character": 0 },
+      },
+      "context": { "diagnostics": [], "only": ["quickfix"] },
+    }),
+  );
+  assert_eq!(res, json!(null));
+  client.shutdown();
+}
+
 // Regression test for https://github.com/denoland/deno/issues/22122.
 #[test]
 fn lsp_cache_then_definition() {
Repository: ggml-org/llama.cpp
Pull request: vulkan: increase timeout for CI

Fixes #14569.

This has gotten slower recently with the additional flash attention variants. I think the crash-on-exit workaround will be available relatively soon, after that we should consider switching the Vulkan testing back to GPU.


Changed files:
filename: .github/workflows/build.yml
patch: @@ -342,7 +342,7 @@ jobs:
           cd build
           export GGML_VK_VISIBLE_DEVICES=0
           # This is using llvmpipe and runs slower than other backends
-          ctest -L main --verbose --timeout 3600
+          ctest -L main --verbose --timeout 4200
 
   ubuntu-22-cmake-hip:
     runs-on: ubuntu-22.04
Repository: electron/electron
Pull request: build: improve `gen-libc++-filenames` output

Backport of #44424

See that PR for details.


Notes: none


Changed files:
filename: .github/workflows/pipeline-segment-electron-gn-check.yml
patch: @@ -132,6 +132,10 @@ jobs:
       with:
         path: src/electron
         fetch-depth: 0
+    - name: Install Dependencies
+      run: |
+        cd src/electron
+        node script/yarn install --frozen-lockfile
     - name: Default GN gen
       run: |
         cd src/electron

filename: script/gen-libc++-filenames.js
patch: @@ -1,3 +1,5 @@
+const chalk = require('chalk');
+
 const fs = require('node:fs');
 const path = require('node:path');
 
@@ -17,6 +19,29 @@ function findAllHeaders (basePath) {
   return toReturn;
 }
 
+const diff = (array1, array2) => {
+  const set1 = new Set(array1);
+  const set2 = new Set(array2);
+
+  const added = array1.filter(item => !set2.has(item));
+  const removed = array2.filter(item => !set1.has(item));
+
+  console.log(chalk.white.bgGreen.bold('Files Added:'));
+  added.forEach(item => console.log(chalk.green.bold(`+ ${item}`)));
+
+  console.log(chalk.white.bgRed.bold('Files Removed:'));
+  removed.forEach(item => console.log(chalk.red.bold(`- ${item}`)));
+};
+
+const parseHeaders = (name, content) => {
+  const pattern = new RegExp(`${name}_headers\\s*=\\s*\\[(.*?)\\]`, 's');
+  const headers = content.match(pattern);
+  if (!headers) return [];
+  return headers[1].split(',')
+    .map(item => item.trim().replace(/"/g, ''))
+    .filter(item => item.length > 0);
+};
+
 for (const folder of ['libc++', 'libc++abi']) {
   const prettyName = folder.replace(/\+/g, 'x');
 
@@ -25,21 +50,26 @@ for (const folder of ['libc++', 'libc++abi']) {
 
   const headers = findAllHeaders(libcxxIncludeDir).map(absPath => path.relative(path.resolve(__dirname, '../..', gclientPath), absPath));
 
+  const newHeaders = headers.map(f => `//${path.posix.join(gclientPath, f)}`);
   const content = `${prettyName}_headers = [
-  ${headers.map(f => `"//${path.posix.join(gclientPath, f)}"`).join(',\n  ')},
+  ${newHeaders.map(h => `"${h}"`).join(',\n  ')},
 ]
 
 ${prettyName}_licenses = [ "//third_party/${folder}/src/LICENSE.TXT" ]
 `;
 
-  const filenamesPath = path.resolve(__dirname, '..', `filenames.${prettyName}.gni`);
+  const file = `filenames.${prettyName}.gni`;
+  const filenamesPath = path.resolve(__dirname, '..', file);
 
   if (check) {
     const currentContent = fs.readFileSync(filenamesPath, 'utf8');
     if (currentContent !== content) {
-      console.log('currentContent: ', currentContent);
-      console.log('content: ', content);
-      throw new Error(`${prettyName} filenames need to be regenerated, latest generation does not match current file.  Please run node gen-libc++-filenames.js`);
+      const currentHeaders = parseHeaders(prettyName, currentContent);
+
+      console.error(chalk.bold(`${file} contents are not up to date:\n`));
+      diff(currentHeaders, newHeaders);
+      console.error(chalk.bold(`\nRun node gen-libc++-filenames.js to regenerate ${file}`));
+      process.exit(1);
     }
   } else {
     console.log(filenamesPath);
Repository: facebook/react
Pull request: Add aspectRatio to the unitless list

Fixes https://github.com/facebook/react/issues/21098.
Done via GH.

Test plan: let's see if sandbox works.

Changed files:
filename: packages/react-dom/src/shared/CSSProperty.js
patch: @@ -10,6 +10,7 @@
  */
 export const isUnitlessNumber = {
   animationIterationCount: true,
+  aspectRatio: true,
   borderImageOutset: true,
   borderImageSlice: true,
   borderImageWidth: true,
Repository: nodejs/node
Pull request: build: print 'Formatting Markdown...' for long task markdown formatting

<img src="https://github.com/user-attachments/assets/17cf2fb0-b9b4-4e70-bbce-580ea43526c9" width=400 />

Task `format-md` takes quite a long time (30 seconds). So, Added console output like the other tasks.

Changed files:
filename: Makefile
patch: @@ -1400,6 +1400,7 @@ lint-md: lint-js-doc | tools/.mdlintstamp ## Lint the markdown documents maintai
 run-format-md = tools/lint-md/lint-md.mjs --format $(LINT_MD_FILES)
 .PHONY: format-md
 format-md: tools/lint-md/node_modules/remark-parse/package.json ## Format the markdown documents maintained by us in the codebase.
+	$(info Formatting Markdown...)
 	@$(call available-node,$(run-format-md))
Repository: vercel/next.js
Pull request: Sort next-server NFT json files

For more deterministic build outputs (at least with Turbopack)

Closes PACK-4718

Changed files:
filename: packages/next/src/build/collect-build-traces.ts
patch: @@ -506,12 +506,19 @@ export async function collectBuildTraces({
         addToTracedFiles(root, relativeModulePath, minimalServerTracedFiles)
       }
 
+      const serverTracedFilesSorted = Array.from(serverTracedFiles)
+      serverTracedFilesSorted.sort()
+      const minimalServerTracedFilesSorted = Array.from(
+        minimalServerTracedFiles
+      )
+      minimalServerTracedFilesSorted.sort()
+
       await Promise.all([
         fs.writeFile(
           nextServerTraceOutput,
           JSON.stringify({
             version: 1,
-            files: Array.from(serverTracedFiles),
+            files: serverTracedFilesSorted,
           } as {
             version: number
             files: string[]
@@ -521,7 +528,7 @@ export async function collectBuildTraces({
           nextMinimalTraceOutput,
           JSON.stringify({
             version: 1,
-            files: Array.from(minimalServerTracedFiles),
+            files: minimalServerTracedFilesSorted,
           } as {
             version: number
             files: string[]
Repository: facebook/react
Pull request: Revert "Add regression test for #18497"

Reverts facebook/react#18538

This passes on CI but for some reason fails locally for me. I don't understand why but for now I'll revert to unblock. 

Changed files:
filename: packages/react-reconciler/src/__tests__/ReactHooksWithNoopRenderer-test.js
patch: @@ -3314,44 +3314,4 @@ describe('ReactHooksWithNoopRenderer', () => {
     });
     expect(ReactNoop).toMatchRenderedOutput('ABC');
   });
-
-  it('keeps intermediate state updates (issue #18497)', () => {
-    let _dispatch;
-    function Counter() {
-      const [list, dispatch] = React.useReducer((l, c) => l.concat([c]), []);
-      _dispatch = dispatch;
-
-      const json = JSON.stringify(list);
-      Scheduler.unstable_yieldValue('Render ' + json);
-      useLayoutEffect(() => {
-        Scheduler.unstable_yieldValue('Commit ' + json);
-      });
-
-      return json;
-    }
-
-    act(() => {
-      ReactNoop.render(<Counter />);
-      expect(Scheduler).toFlushAndYieldThrough(['Render []', 'Commit []']);
-      expect(ReactNoop).toMatchRenderedOutput('[]');
-    });
-
-    act(() => {
-      _dispatch(1);
-      expect(Scheduler).toFlushAndYieldThrough(['Render [1]']);
-
-      _dispatch(2);
-      expect(Scheduler).toFlushAndYieldThrough(['Commit [1]']);
-      expect(ReactNoop).toMatchRenderedOutput('[1]');
-
-      expect(Scheduler).toFlushAndYieldThrough(['Render [1,2]']);
-      _dispatch(3);
-
-      expect(Scheduler).toFlushAndYieldThrough([
-        'Render [1,2,3]',
-        'Commit [1,2,3]',
-      ]);
-      expect(ReactNoop).toMatchRenderedOutput('[1,2,3]');
-    });
-  });
 });

filename: scripts/jest/matchers/schedulerTestMatchers.js
patch: @@ -20,9 +20,7 @@ function assertYieldsWereCleared(Scheduler) {
   const actualYields = Scheduler.unstable_clearYields();
   if (actualYields.length !== 0) {
     throw new Error(
-      'Log of yielded values is not empty: ' +
-        JSON.stringify(actualYields) +
-        '. ' +
+      'Log of yielded values is not empty. ' +
         'Call expect(Scheduler).toHaveYielded(...) first.'
     );
   }
Repository: ggml-org/llama.cpp
Pull request: llama : fix incorrect minicpm3 v_states shape

This has been broken since #12449

Changed files:
filename: src/llama-model.cpp
patch: @@ -8699,11 +8699,6 @@ struct llm_build_minicpm3 : public llm_graph_context {
                 v_states = ggml_cont(ctx0, v_states);
                 cb(v_states, "v_states", il);
 
-                v_states = ggml_view_2d(ctx0, v_states, hparams.n_embd_head_v * n_head, n_tokens,
-                        ggml_row_size(kv->type, hparams.n_embd_head_v * n_head),
-                        0);
-                cb(v_states, "v_states", il);
-
                 q_pe = ggml_rope_ext(
                         ctx0, q_pe, inp_pos, rope_factors,
                         n_rot, rope_type, n_ctx_orig, freq_base, freq_scale,
Repository: facebook/react
Pull request: Fix react-runtime `main` field

The "main" field in this package points to a non-existent file. This fixes it.

Changed files:
filename: packages/react-refresh/package.json
patch: @@ -17,7 +17,7 @@
     "cjs/",
     "umd/"
   ],
-  "main": "index.js",
+  "main": "runtime.js",
   "repository": {
     "type": "git",
     "url": "https://github.com/facebook/react.git",
Repository: nodejs/node
Pull request: doc: disambiguate pseudo-code statement

the statement `set Y to be the file system root` can be wrongly interpreted as the file system root being updated to match Y, removing the `be` term removes this potential interpretation

Fixes https://github.com/nodejs/node/issues/51780

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: doc/api/modules.md
patch: @@ -346,7 +346,7 @@ require(X) from module at path Y
    a. return the core module
    b. STOP
 2. If X begins with '/'
-   a. set Y to be the file system root
+   a. set Y to the file system root
 3. If X begins with './' or '/' or '../'
    a. LOAD_AS_FILE(Y + X)
    b. LOAD_AS_DIRECTORY(Y + X)
Repository: vercel/next.js
Pull request: Turbopack: more deterministic manifest order

Fix non-deterministic next font manifest order:

![Bildschirmfoto 2025-05-30 um 15.41.12.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sjZSbv6AFeuDg7Gb9rma/e2de4601-a90e-41db-ac4c-7fde7ffec146.png)


Closes PACK-4721

Changed files:
filename: crates/next-core/src/emit.rs
patch: @@ -1,8 +1,7 @@
 use anyhow::Result;
-use rustc_hash::FxHashSet;
 use tracing::Instrument;
 use turbo_tasks::{
-    ResolvedVc, TryFlatJoinIterExt, ValueToString, Vc,
+    FxIndexSet, ResolvedVc, TryFlatJoinIterExt, ValueToString, Vc,
     graph::{AdjacencyMap, GraphTraversal},
 };
 use turbo_tasks_fs::{FileSystemPath, rebase};
@@ -113,7 +112,7 @@ pub async fn all_assets_from_entries(entries: Vc<OutputAssets>) -> Result<Vc<Out
             .completed()?
             .into_inner()
             .into_postorder_topological()
-            .collect::<FxHashSet<_>>()
+            .collect::<FxIndexSet<_>>()
             .into_iter()
             .collect(),
     ))
Repository: facebook/react
Pull request: Exclude fixtures from Flow config

I couldn't run Flow for a few months. This solves it. I don't think we need it there anyway.

Changed files:
filename: scripts/flow/config/flowconfig
patch: @@ -1,6 +1,7 @@
 [ignore]
 .*/scripts/bench/.*
 .*/build/.*
+.*/fixtures/.*
 .*/.tempUserDataDir/.*
 
 # These shims are copied into external projects:
Repository: ggml-org/llama.cpp
Pull request: CUDA: add bf16 and i32 to getrows

Just add the missing case statements

Changed files:
filename: ggml/src/ggml-cuda/getrows.cu
patch: @@ -168,6 +168,10 @@ static void ggml_cuda_get_rows_switch_src0_type(
             get_rows_cuda_float((const float *) src0_d, src1_d, dst_d,
                 ne00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb11, nb12, nb1, nb2, nb3, stream);
             break;
+        case GGML_TYPE_I32:
+            get_rows_cuda_float((const int32_t *) src0_d, src1_d, dst_d,
+                ne00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb11, nb12, nb1, nb2, nb3, stream);
+            break;
         case GGML_TYPE_BF16:
             get_rows_cuda_float((const nv_bfloat16 *) src0_d, src1_d, dst_d,
                 ne00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb11, nb12, nb1, nb2, nb3, stream);
@@ -210,6 +214,10 @@ void get_rows_cuda(
             ggml_cuda_get_rows_switch_src0_type(src0_d, src0_type, src1_d, (float *) dst_d,
                 ne00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb11, nb12, nb1, nb2, nb3, stream);
             break;
+        case GGML_TYPE_I32:
+            ggml_cuda_get_rows_switch_src0_type(src0_d, src0_type, src1_d, (int32_t *) dst_d,
+                ne00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb11, nb12, nb1, nb2, nb3, stream);
+            break;
         case GGML_TYPE_F16:
             ggml_cuda_get_rows_switch_src0_type(src0_d, src0_type, src1_d, (half *) dst_d,
                 ne00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb11, nb12, nb1, nb2, nb3, stream);

filename: ggml/src/ggml-cuda/ggml-cuda.cu
patch: @@ -3200,6 +3200,8 @@ static bool ggml_backend_cuda_device_supports_op(ggml_backend_dev_t dev, const g
                 switch (op->src[0]->type) {
                     case GGML_TYPE_F16:
                     case GGML_TYPE_F32:
+                    case GGML_TYPE_BF16:
+                    case GGML_TYPE_I32:
                     case GGML_TYPE_Q4_0:
                     case GGML_TYPE_Q4_1:
                     case GGML_TYPE_Q5_0:
Repository: nodejs/node
Pull request: benchmark: add a warmup on bench-openSync

@RafaelGSS could you review this PR? thx

Changed files:
filename: benchmark/fs/bench-openSync.js
patch: @@ -10,6 +10,18 @@ const bench = common.createBenchmark(main, {
   n: [1e5],
 });
 
+function runBench({ n, path }) {
+  for (let i = 0; i < n; i++) {
+    try {
+      const fd = fs.openSync(path, 'r', 0o666);
+      fs.closeSync(fd);
+    } catch {
+      // do nothing
+    }
+  }
+}
+
+
 function main({ n, type }) {
   let path;
 
@@ -24,14 +36,9 @@ function main({ n, type }) {
       new Error('Invalid type');
   }
 
+  runBench({ n, path });
+
   bench.start();
-  for (let i = 0; i < n; i++) {
-    try {
-      const fd = fs.openSync(path, 'r', 0o666);
-      fs.closeSync(fd);
-    } catch {
-      // do nothing
-    }
-  }
+  runBench({ n, path });
   bench.end(n);
 }
Repository: facebook/react
Pull request: Update changelog for 16.14, 15.7, 0.14.10


Changed files:
filename: CHANGELOG.md
patch: @@ -1,3 +1,9 @@
+## 16.14.0 (October 14, 2020)
+
+### React
+
+* Add support for the [new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html). ([@lunaruan](https://github.com/lunaruan) in [#18299](https://github.com/facebook/react/pull/18299))
+
 ## 16.13.1 (March 19, 2020)
 
 ### React DOM
@@ -770,6 +776,12 @@ Starting with 16.1.0, we will no longer be publishing new releases on Bower. You
 - There is no `react-with-addons.js` build anymore. All compatible addons are published separately on npm, and have single-file browser versions if you need them.
 - The deprecations introduced in 15.x have been removed from the core package. `React.createClass` is now available as create-react-class, `React.PropTypes` as prop-types, `React.DOM` as react-dom-factories, react-addons-test-utils as react-dom/test-utils, and shallow renderer as react-test-renderer/shallow. See [15.5.0](https://reactjs.org/blog/2017/04/07/react-v15.5.0.html) and [15.6.0](https://reactjs.org/blog/2017/06/13/react-v15.6.0.html) blog posts for instructions on migrating code and automated codemods.
 
+## 15.7.0 (October 14, 2020)
+
+### React
+
+* Backport support for the [new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) to 15.x. ([@lunaruan](https://github.com/lunaruan) in [#18299](https://github.com/facebook/react/pull/18299) and [@gaearon](https://github.com/gaearon) in [#20024](https://github.com/facebook/react/pull/20024))
+
 ## 15.6.2 (September 25, 2017)
 
 ### All Packages
@@ -1221,6 +1233,11 @@ Each of these changes will continue to work as before with a new warning until t
 - React DOM adds a new `suppressContentEditableWarning` prop for components like [Draft.js](https://draftjs.org/) that intentionally manage `contentEditable` children with React. ([@mxstbr](https://github.com/mxstbr) in [#6112](https://github.com/facebook/react/pull/6112))
 - React improves the performance for `createClass()` on complex specs. ([@sophiebits](https://github.com/sophiebits) in [#5550](https://github.com/facebook/react/pull/5550))
 
+## 0.14.10 (October 14, 2020)
+
+### React
+
+* Backport support for the [new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) to 0.14.x. ([@lunaruan](https://github.com/lunaruan) in [#18299](https://github.com/facebook/react/pull/18299) and [@gaearon](https://github.com/gaearon) in [#20024](https://github.com/facebook/react/pull/20024))
 
 ## 0.14.8 (March 29, 2016)
Repository: denoland/deno
Pull request: fix(ext/node): convert errors from `fs.readFile/fs.readFileSync` to node format

Fixes the original issue reported in #26404. storybook runs into other errors after this PR (the new errors will be fixed in other PRs).

Some code used by a dependency of storybook does a [string comparison on the error message](https://github.com/chromaui/chromatic-cli/blob/ce30b2be343cb96a0826390b95ea42befb2be547/node-src/lib/getConfiguration.ts#L88-L92) thrown here to check for a file not found error.




Changed files:
filename: ext/node/polyfills/_fs/_fs_readFile.ts
patch: @@ -19,6 +19,7 @@ import {
   TextEncodings,
 } from "ext:deno_node/_utils.ts";
 import { FsFile } from "ext:deno_fs/30_fs.js";
+import { denoErrorToNodeError } from "ext:deno_node/internal/errors.ts";
 
 function maybeDecode(data: Uint8Array, encoding: TextEncodings): string;
 function maybeDecode(
@@ -87,7 +88,7 @@ export function readFile(
       }
       const buffer = maybeDecode(data, encoding);
       (cb as BinaryCallback)(null, buffer);
-    }, (err) => cb && cb(err));
+    }, (err) => cb && cb(denoErrorToNodeError(err)));
   }
 }
 
@@ -117,7 +118,12 @@ export function readFileSync(
   opt?: FileOptionsArgument,
 ): string | Buffer {
   path = path instanceof URL ? pathFromURL(path) : path;
-  const data = Deno.readFileSync(path);
+  let data;
+  try {
+    data = Deno.readFileSync(path);
+  } catch (err) {
+    throw denoErrorToNodeError(err);
+  }
   const encoding = getEncoding(opt);
   if (encoding && encoding !== "binary") {
     const text = maybeDecode(data, encoding);
Repository: electron/electron
Pull request: fix: keep gdk_pixbuf a dynamic dependency

Backport of #44423

See that PR for details.


Notes: fix regression with dynamic dependency on `libgdk_pixbuf`

Changed files:
filename: shell/browser/ui/electron_gdk_pixbuf.sigs
patch: @@ -1,3 +1,4 @@
-GdkPixbuf* gdk_pixbuf_new(GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height)
+GdkPixbuf* gdk_pixbuf_new_from_bytes(GBytes* data, GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height, int rowstride)
 GdkPixbuf* gdk_pixbuf_scale_simple(const GdkPixbuf* src, int dest_width, int dest_height, GdkInterpType interp_type)
-guchar* gdk_pixbuf_get_pixels(const GdkPixbuf* pixbuf)
+GdkPixbuf* gdk_pixbuf_new_from_file_at_size(const char* filename, int width, int height, GError** error);
+gint gdk_pixbuf_calculate_rowstride(GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height)