Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/electron/electron. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Sep 16, 2024
  2. Sep 12, 2024
  3. Sep 11, 2024
  4. Sep 10, 2024
  5. Sep 09, 2024
  6. Sep 08, 2024
    • Charles Kerr's avatar
      perf: avoid redundant Promise.GetContext calls (#43609) · 05686863
      Charles Kerr authored
      refactor: avoid redundant Promise.GetContext calls
      
      Several Promise methods call `GetContext()` multiple times. From looking
      at the assembly in obj/electron/electron_lib/promise.o, these redundant
      calls are actually being made -- they aren't optmized out.
      
      This PR keeps the return value in a local variable to avoid extra calls.
  7. Sep 07, 2024
    • Charles Kerr's avatar
      refactor: take a `uint8_t` span in `ValidateIntegrityOrDie()` (#43592) · 44a4328e
      Charles Kerr authored
      refactor: take a uint8_t span in ValidateIntegrityOrDie()
      
      Doing some groundwork for fixing unsafe base::File() APIs:
      
      - Change ValidateIntegrityOrDie() to take a span<const uint8_t> arg.
        We'll need this to migrate asar's base::File API calls away from the
        ones tagged `UNSAFE_BUFFER_USAGE` because the safe counterparts use
        span<uint8_t> too.
      
      - Simplify ValidateIntegrityOrDie()'s implementation by using
        crypto::SHA256Hash() instead of reinventing the wheel.
  8. Sep 06, 2024
  9. Sep 05, 2024
  10. Sep 04, 2024
Loading