?
u
/
Specification Name | [[Description]] | Value and Purpose |
---|---|---|
@@matcher |
"Symbol.matcher"
|
A method that performs custom pattern matching semantics. Called by the semantics of the match expression.
|
The abstract operation CreateMatchRecord takes argument matched (a Boolean) and optional argument value (an
The abstract operation CreateMatchResultObject takes argument matched (a Boolean) and optional argument value (an
The abstract operation MatchConstructorInstance takes arguments value (an Object) and target (an
undefined
, NaN
, and Infinity
are +NaN
, -NaN
, +Infinity
, and -Infinity
are default
:
clause.default
:
clause./a(?<if>.+)/
is a syntax error when used in match pattern.or
and and
at the same level without a ()
. For example, a or b and c
is an a or (b and c)
or (a or b) and c
is okay.The
The
The
The
The
The
+
sign, the next line should use The
The
The
The
A
Field Name | Value | Meaning |
---|---|---|
[[Matched]] | a Boolean | If the match clause matched. |
[[Value]] | an | The matched value. |
The abstract operation InvokeCustomMatcher takes arguments val (an
The abstract operation RegularExpressionNamedCaptureGroupBindingInitialization takes argument regexMatchResult (an Array) and returns
The abstract operation GetMatchCache takes arguments cacheGroup (a Map) and object (an
The abstract operation MatchCachedHasProperty takes arguments cacheGroup (a Map), object (an
The abstract operation MatchCachedGet takes arguments cacheGroup (a Map), object (an
The abstract operation MatchCachedIsIterable takes arguments cacheGroup (a Map) and object (an
The abstract operation MatchCachedGetIterator takes arguments cacheGroup (a Map) and object (an
The abstract operation MatchCachedIteratorStep takes arguments cacheGroup (a Map) and iterator (an
The abstract operation MatchCachedGetIteratorNthItem takes arguments cacheGroup (a Map), iterator (an
The abstract operation MatchIteratorLengthMatch takes arguments cacheGroup (a Map), matchable (an
The abstract operation CloseIterators takes argument iterators (a
The abstract operation AddMatchBinding takes arguments name (a String) and value (an
This function is called by ECMAScript pattern matching to determine if the value
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a Function.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a Function, or an instance of a class
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a matching Boolean.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is the same Symbol.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is an Error.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a NativeError
.
When the @@matcher
method is called with argument value, the following steps are taken:
When the
This function is called by ECMAScript pattern matching to determine if the value is an AggregateError.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is the same Number.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is the same BigInt.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a Date.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is the same String.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a RegExp.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value matches the RegExp.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is an Array.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a TypedArray.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a Map.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a Set.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a WeakMap.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a WeakSet.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is an ArrayBuffer.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a SharedArrayBuffer.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a DataView.
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a
When the @@matcher
method is called with argument value, the following steps are taken:
This function is called by ECMAScript pattern matching to determine if the value is a Promise.
When the @@matcher
method is called with argument value, the following steps are taken:
© 2023 Daniel Rosenwasser,Jack Works,Jordan Harband,Mark Cohen,Ross Kirsling,Tab Atkins
All Software contained in this document ("Software") is protected by copyright and is being made available under the "BSD License", included below. This Software may be subject to third party rights (rights from parties other than Ecma International), including patent rights, and no licenses under such third party rights are granted under this license even if the third party concerned is a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS AVAILABLE AT https://ecma-international.org/memento/codeofconduct.htm FOR INFORMATION REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO IMPLEMENT ECMA INTERNATIONAL STANDARDS.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ECMA INTERNATIONAL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.