Ryan's Wiki

      • .sort() is guaranteed to be stable
      • @Ignore
      • @required
      • @SerializedName
      • abstraction
      • Adjectives
      • affirmative
      • allowJs
      • Always Include Route Default Values
      • Ambient Declarations
      • American Presidents
      • anathema
      • anonymous
      • antecedent
      • anteroom
      • antimacassar
      • Architecture
      • Array Iteration Prototype Methods
      • Array Search Prototype Methods
      • Array.from()
      • Array.of()
      • Array.prototype.copyWithin()
      • Array.prototype.entries()
      • Array.prototype.fill()
      • Array.prototype.find()
      • Array.prototype.findIndex()
      • Array.prototype.flat()
      • Array.prototype.flatMap()
      • Array.prototype.includes()
      • Array.prototype.keys()
      • Array.prototype.map()
      • Array.prototype.Sort()
      • Array.prototype.values()
      • as~mutptrrange~
      • as~ptrrange~
      • AtLeastOneOf Constraint
      • Automatic Search Engine Protection
      • Automatic Validation Based on Doctrine Mapping
      • Autowiring By Type and Name
      • Bic Constraint
      • Binary Notation
      • Binding / Variables in JavaScript
      • Bindings and scopes in JavaScript
      • bluestocking
      • Box\<T\>
      • Callback Functions To Get/Set Form Fields
      • Capitalize
      • CardScheme Constraint
      • Cargo
      • Cargo.toml
      • Carthaginian peace
      • Catching Promise Errors
      • Characters That Count as Whitespace
      • checkJs
      • checkJs
      • chenille
      • Chess Terms
      • chiffonier
      • CI/CD
      • Closure in JavaScript
      • Clothing
      • Code debt
      • collections
      • Command::ERROR
      • Command::SUCCESS
      • Commit guidelines
      • CommonJS
      • Compound Constraint
      • Compromised Password Constraint
      • Configurable Session ID
      • Configuring Services With Immutable Setters
      • consensus
      • Console Cursor Control
      • Console Signals
      • ConsoleEvents::SIGNAL
      • containsAny()
      • Control flows in JavaScript
      • Conventional changelog
      • convert
      • createFromImmutable()
      • createFromInterface()
      • CurrentUser
      • DateTime
      • debug autowiring
      • debug form
      • decanter
      • Define Constraints as Attributes
      • define()
      • Definition Lists
      • Deprecate Public Services Into Private Services
      • Deprecating Service Aliases
      • Deref Trait
      • Design debt
      • Destructuring Arrays
      • Destructuring Default Values
      • Destructuring Iterables
      • Destructuring Objects
      • detritus
      • Development Tools
      • Different Hosts Per Locale
      • DKIM Email Authentication
      • DNS
      • DNSCrypt
      • Doctrine
      • Doctrine Entity Listeners
      • Documentation debt
      • Drop Trait
      • Dwight D. Eisenhower
      • Dynamic Import
      • ECMAScript Modules
      • Economic state of USSR 1942-1943
      • Economics
      • Ecrypted Secrets Management
      • eidetic
      • Empty values
      • Encryption
      • epaulet
      • ephemeral
      • ES6
      • ES2016
      • ES2017
      • ES2018
      • ES2019
      • ES2020
      • Event Listeners
      • Events
      • Executing Promises in Parallel
      • Executing Promises in Parallel (Promises.all)
      • Expression Constraint
      • Expression Linter
      • ExpressionLanguage Component
      • ExpressionLanguage Constraint
      • ExpressionLanguageSyntax Constraint
      • Fallback For Internationalized Routes
      • fianchetto
      • Filesystem Component
      • First make the change easy, then make the easy change.
      • Fractional Numbers
      • fromRandom()
      • Front Controller Configuration
      • Function std
      • Furniture
      • future
      • gaberdine
      • geld
      • Geographic Terms
      • Geographical terms
      • get~debugtype~()
      • get~resourceid~()
      • getCredentials() responsibilities split
      • Gitlab
      • Glassware
      • globalThis
      • Golang
      • Golang Arrays
      • Golang Context
      • Golang Embedding
      • Golang Errors
      • Golang flow control statements
      • Golang Functions
      • Golang interfaces
      • Golang maps
      • Golang methods
      • Golang Mutex
      • Golang Packages
      • Golang Pointers
      • Golang slices
      • Golang Structs
      • Golang tooling
      • Golang variables
      • Golang WaitGroup
      • Goroutines
      • gregarious
      • Groups support for Valid constraint
      • Historical Terms
      • History
      • Horizontal Tables
      • horizontalTable()
      • Hostname Constraint
      • HttpClient Component
      • HttpFoundation Component
      • idempotent
      • ignominy
      • Impact of Multifaceted Abstraction on Key Quality Attributes
      • imperturbable
      • Important quality attributes and their definitions
      • inchmeal
      • indolent
      • Infinity
      • info() / setInfo()
      • Inlined Routing Configuration
      • insouciance
      • Intercommunicating zones
      • Internationalized Routing
      • Invokable Doctrine Entity Listeners
      • IP Address Anonymizer
      • IPv6
      • IS~AUTHENTICATEDFULLY~
      • IS~AUTHENTICATEDREMEMBERED~
      • IS~IMPERSONATOR~
      • IS~REMEMBERED~
      • iterate() method
      • JavaScript
      • JavaScript Addition Operator
      • JavaScript Arithmetic Operators
      • JavaScript Array Functions
      • JavaScript Array Methods
      • JavaScript Array Prototype Methods
      • JavaScript Arrays
      • JavaScript arrow functions
      • JavaScript Async Functions
      • JavaScript Async Iterator
      • JavaScript BigInt
      • JavaScript Books
      • JavaScript Booleans
      • JavaScript Breaking Out of a Loop
      • JavaScript Callbacks
      • JavaScript Catch Binding
      • JavaScript Class Inheritance
      • JavaScript Class Notation
      • JavaScript Classes Method Definition
      • JavaScript Comments
      • JavaScript Comparison Operators
      • JavaScript Concatenation Operator
      • JavaScript Conditional (Ternary) Operator
      • JavaScript Consuming Promises
      • JavaScript Control Flows
      • JavaScript Custom Error Types
      • JavaScript declaration notation
      • JavaScript Delete Operator
      • JavaScript Destructuring
      • JavaScript Division Operator
      • JavaScript Error Handling
      • JavaScript Error Sub Types
      • JavaScript Exceptions
      • JavaScript Exceptions Finally
      • JavaScript Exponentation Operator
      • JavaScript For Await Of
      • JavaScript For Of
      • JavaScript For Statement
      • JavaScript function declarations
      • JavaScript Generators
      • JavaScript higher-order functions
      • JavaScript If Statement
      • JavaScript In Operator
      • JavaScript Instanceof Operator
      • JavaScript Iterables
      • JavaScript Iterator
      • JavaScript Logical Operators
      • JavaScript Lookahead Assertions
      • JavaScript Lookbehind Assertions
      • JavaScript Maps
      • JavaScript Math library
      • JavaScript Metaprogramming
      • JavaScript Multiplication Operator
      • JavaScript Named parameters
      • JavaScript New Keyword
      • JavaScript Number library
      • JavaScript Numbers
      • JavaScript Object Functions
      • JavaScript object getters & setters
      • JavaScript Object Keywords
      • JavaScript Object Mutability
      • JavaScript object operators
      • JavaScript Object Operators
      • JavaScript Object Properties
      • JavaScript Object Prototype Methods
      • JavaScript Objects
      • JavaScript Operators
      • JavaScript Optional Catch Binding
      • JavaScript Parameter default values
      • JavaScript Parenthesis Operator
      • JavaScript Primitives
      • JavaScript Producing Promises
      • JavaScript Promises
      • JavaScript Promises Finally
      • JavaScript Prototypes
      • JavaScript Proxies
      • JavaScript RangeError
      • JavaScript ReferenceError
      • JavaScript RegExp /s flag
      • JavaScript RegExp /u flag
      • JavaScript RegExp Exec Method
      • JavaScript RegExp Match Method
      • JavaScript RegExp Named Capture Groups
      • JavaScript RegExp Numbered Capture Groups
      • JavaScript RegExp Replace Method
      • JavaScript RegExp Search Method
      • JavaScript RegExp Test Method
      • JavaScript RegExp Unicode Property Escapes
      • JavaScript Regular Expressions
      • JavaScript Remainder Operator
      • JavaScript Rest Parameters
      • JavaScript Sets
      • JavaScript Short Circuiting of Logical Operators
      • JavaScript Strict Mode
      • JavaScript String endsWith Method
      • JavaScript String Escapes
      • JavaScript String includes Method
      • JavaScript String Iteration
      • JavaScript String Literals
      • JavaScript String Operators
      • JavaScript String padEnd Method
      • JavaScript String padStart Method
      • JavaScript String Prototype Methods
      • JavaScript String Repeat Method
      • JavaScript String startsWith Method
      • JavaScript String To Array Conversion
      • JavaScript Strings
      • JavaScript Subtraction Operator
      • JavaScript Switch Statement
      • JavaScript Symbol Prototype Methods
      • JavaScript Symbols
      • JavaScript SyntaxError
      • JavaScript Tagged Template Literals
      • JavaScript Template Literals
      • JavaScript Type Conversion
      • JavaScript TypeError
      • JavaScript Typeof Operator
      • JavaScript Types
      • JavaScript Unary Operators
      • JavaScript UriError
      • JavaScript Variables
      • JavaScript WeakMaps
      • jsx react factory function
      • jsxs react factory function
      • Keep last word
      • Kent Beck
      • Lazy Commands
      • Lazy Firewalls
      • Lazy Sessions
      • Ledger
      • lib.d.ts
      • Linking To Items By Name
      • lint:yaml
      • Linters
      • Listeners
      • Local Service Binding
      • Login Throttling
      • LogoutEvent
      • Lowercase
      • Mailer Component
      • Match expression
      • MatchAll Expression
      • memoization
      • Microseconds support
      • Mime Component
      • mirth
      • Module Namespace Exports
      • Movie Ideas
      • name~prefix~
      • NaN
      • NotBlank allowNull
      • NotBlank Constraint
      • Notification Emails
      • noUncheckedIndexAccess
      • Nouns
      • Nuclear War
      • Nullish coalescing operator (??)
      • Number Constraints
      • Object.assign
      • Object.entries
      • Object.fromEntries
      • Object.getOwnPropertyDescriptors
      • Object.is
      • Object.keys
      • Object.values
      • Octal Notation
      • Optimism is an occupational hazard of programming. Feedback is the treatment.
      • Optional arguments in JavaScript functions
      • Optional Chaining Operator (?.)
      • OptionsResolver Component
      • Ownership in Rust
      • Password Migrations
      • pending
      • percolate
      • perfunctory
      • PHP
      • PHP 8.0
      • PHP Attributes
      • PHP Class Name Literal
      • PHP constructor property promotion
      • PHP expressions
      • PHP functions
      • PHP Mixed Type
      • PHP Named Arguments
      • PHP Non-capturing Catches
      • PHP nullsafe operator
      • PHP Objects
      • PHP resource functions
      • PHP Static Return Type
      • PHP string functions
      • PHP Stringable Interface
      • PHP Throw Expression
      • PHP type functions
      • PHP Types
      • PHP Union Type
      • PHP Weak Maps
      • PHP Weap Maps
      • podophilia
      • Political Science
      • Political science terms
      • Pournelle's Iron Law of Bureaucracy
      • précis
      • predicate
      • Prefix all controller route names
      • prig
      • priority
      • Producing Promises
      • Programming Terms
      • Promise.allSettled
      • Pseudo-localization Translator
      • Quotes
      • rancor
      • Rc\<T\>
      • React
      • React factory functions
      • react-jsx
      • react-jsxdev
      • Readonly
      • ready
      • Recursion in JavaScript
      • RefCell\<T\>
      • Reflection
      • Required
      • reset() method
      • Rest Operator (…) in Object Destructuring
      • reverse()
      • ROLE~PREVIOUSADMIN~
      • Route
      • Route Annotations Priority
      • Rust
      • Rust 1.48
      • Rust books & exercises
      • Rust Closures
      • Rust Comments
      • Rust control flow
      • Rust enums
      • Rust functions
      • Rust Functions
      • Rust Generics
      • Rust Hash Maps
      • Rust Iterators
      • Rust message passing
      • Rust Pattern Syntax
      • Rust Pointers
      • Rust Primitive Types
      • Rust Recoverable Errors
      • Rust Shared-State Concurrency
      • Rust Strings
      • Rust Structs
      • Rust Structs Syntax
      • Rust Threads
      • Rust tooling
      • Rust Tooling
      • Rust Traits
      • Rust Traits Syntax
      • Rust Unrecoverable Errors
      • Rust variables
      • Rust Vectors
      • Rustc
      • rustdoc
      • sanguine
      • Scientific Notation
      • Search Aliases
      • Sequentially Constraint
      • serialization
      • Service Decoration
      • Sessions
      • Sexual terms
      • Signing and Encrypting Messages
      • Simpler Event Listeners
      • Simpler Service Decoration
      • Single Command Applications
      • slice
      • Sodium password encoder
      • Software design
      • Spread (…)
      • Stack Decorators
      • Stateless Route Attribute
      • str~contains~()
      • str~endswith~()
      • str~startswith~()
      • String Component
      • Stringable Interface
      • Struct std
      • Stubby
      • Subscribers
      • Subscribing to events in the micro kernel
      • Switch expression
      • Syfmony Console Table Titles
      • Syfony Controller
      • Symbol.prototype.description
      • Symfony
      • Symfony 4.0
      • Symfony 4.1
      • Symfony 4.2
      • Symfony 4.3
      • Symfony 5.0
      • Symfony 5.1
      • Symfony 5.2
      • Symfony Annotations
      • Symfony Argon2i Password Hasher
      • Symfony Attributes
      • Symfony Autowiring
      • Symfony Clear Form Errors
      • Symfony Commands
      • Symfony Components
      • Symfony Configuration
      • Symfony Console Component
      • Symfony Console Hyperlinks
      • Symfony Console Iterable Progress Bars
      • Symfony Constraints
      • Symfony Contracts Component
      • Symfony Controller Argument Attributes
      • Symfony DivisibleBy Constraint
      • Symfony Doctrine Annotations
      • Symfony Doctrine Integration
      • Symfony Firewalls
      • Symfony Forms
      • Symfony Guard Component
      • Symfony Il8n
      • Symfony JSON
      • Symfony JSON Constraint
      • Symfony Native Encoder
      • Symfony Passwords
      • Symfony PHP7 Polyfill component
      • Symfony Profiler
      • Symfony RateLimiter Component
      • Symfony Resolver
      • Symfony Routing
      • Symfony Routing Annotations
      • Symfony Routing Attributes
      • Symfony Security
      • Symfony Security Attributes
      • Symfony Security Voters
      • Symfony Serializer Component
      • Symfony Services
      • Symfony Stopwatch Component
      • Symfony String Component
      • Symfony Style For Commands
      • Symfony Translation Component
      • Symfony User
      • Symfony user impersonation in debug toolbar
      • Symfony UTF-8 Support
      • Symfony UUID Component
      • Symfony Validation
      • Symfony VarExporter Component
      • Symfony Workflow Component
      • tawdry
      • Technical Debt
      • tempnam()
      • Test debt
      • Tests in Golang
      • Tests in Rust
      • The 10 stages of Christian history
      • The 10 stages of Islamic History
      • The Chaldeans
      • Timezone Constraint
      • Timezozne Constraint
      • Tongue Twisters
      • Trailing Comma in Parameter Lists
      • Trait std
      • trigger~depcreation~
      • trim
      • trimEnd
      • trimStart
      • True Console Colours
      • truncate()
      • TryInto
      • Turn a Vector Into An Array Of a Given Length
      • Type Constraint
      • Type Constraint Can Be An Array of Types
      • Type conversion in JavaScript
      • TypeScript
      • TypeScript
      • TypeScript 4.0
      • TypeScript 4.1
      • TypeScript Arrays
      • TypeScript as Clause
      • TypeScript Boolean Literal Type
      • TypeScript Callable
      • TypeScript Classes
      • TypeScript Discriminated Union
      • TypeScript Enums
      • TypeScript Flags
      • TypeScript Functions
      • TypeScript Generics
      • TypeScript in Operator
      • TypeScript Index Signatures
      • TypeScript Inline Type Annotation
      • TypeScript Interfaces
      • TypeScript Intersection Type
      • TypeScript jsx flag
      • TypeScript Literal Type Guard
      • TypeScript Literal Types
      • TypeScript Mapped Type
      • TypeScript Never Type
      • TypeScript Number Literal Type
      • TypeScript primitive types
      • TypeScript Recursive Conditional Types
      • TypeScript strictNullChecks
      • TypeScript String Literal Type
      • TypeScript Template Literal String Type
      • TypeScript Tuple Type
      • TypeScript Type Alias
      • TypeScript Type Assertion
      • TypeScript Type Guard
      • TypeScript Union Type
      • TypeScript User Defined Type Guards
      • ULID Constraint
      • unanimous
      • Uncapitalize
      • Unicode
      • Unicode Code Point Escapes
      • Unique Constraint
      • Uppercase
      • Use Env Vars in Route Conditions
      • Useful idiot
      • UTF8 Routing Option
      • UUID / ULID Types
      • UUID Normalizer
      • Validate BIC and IBAN Codes Together
      • Validator information in the Symfony profiler
      • VecDeque
      • Verbs
      • viscosity
      • Vocabulary
      • Vue.js
      • Week Form Type
      • wily
      • Workflow DOT format dump
      • Workflow PlanetUML format dump
      • worsted
      • XLIFF 2.0
      • You can't have this kind of war. There aren't enough bulldozers to scrape the bodies off the streets.
    Home

    ❯

    JavaScript Optional Catch Binding

    JavaScript Optional Catch Binding

    Nov 16, 20201 min read

    Description

    Sometimes you don’t care about the error and you’re allowed to ignore it.

    Proposal

    Optional catch binding1

    Syntax

    try {
      // ···
    } catch {
      // ···
    }
    

    Footnotes

    Footnotes

    1. https://github.com/tc39/proposal-optional-catch-binding ↩


    Graph View

    • Description
    • Proposal
    • Syntax
    • Footnotes

    Backlinks

    • JavaScript Control Flows
    • ES2019

    Created with Quartz v4.4.0 © 2025

    • Ryan's Namepage