A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://tc39.es/ecma262/multipage/reflection.html below:

ECMAScript® 2026 Language Specification

28.1 The Reflect Object

The Reflect object:

28.1.1 Reflect.apply ( target, thisArgument, argumentsList )

This function performs the following steps when called:

  1. If IsCallable (target) is false , throw a TypeError exception.
  2. Let args be ?  CreateListFromArrayLike (argumentsList).
  3. Perform PrepareForTailCall ().
  4. Return ?  Call (target, thisArgument, args).
28.1.2 Reflect.construct ( target, argumentsList [ , newTarget ] )

This function performs the following steps when called:

  1. If IsConstructor (target) is false , throw a TypeError exception.
  2. If newTarget is not present, set newTarget to target.
  3. Else if IsConstructor (newTarget) is false , throw a TypeError exception.
  4. Let args be ?  CreateListFromArrayLike (argumentsList).
  5. Return ?  Construct (target, args, newTarget).
28.1.3 Reflect.defineProperty ( target, propertyKey, attributes )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let key be ?  ToPropertyKey (propertyKey).
  3. Let desc be ?  ToPropertyDescriptor (attributes).
  4. Return ? target.[[DefineOwnProperty]](key, desc).
28.1.4 Reflect.deleteProperty ( target, propertyKey )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let key be ?  ToPropertyKey (propertyKey).
  3. Return ? target.[[Delete]](key).
28.1.5 Reflect.get ( target, propertyKey [ , receiver ] )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let key be ?  ToPropertyKey (propertyKey).
  3. If receiver is not present, then
    1. Set receiver to target.
  4. Return ? target.[[Get]](key, receiver).
28.1.6 Reflect.getOwnPropertyDescriptor ( target, propertyKey )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let key be ?  ToPropertyKey (propertyKey).
  3. Let desc be ? target.[[GetOwnProperty]](key).
  4. Return FromPropertyDescriptor (desc).
28.1.7 Reflect.getPrototypeOf ( target )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Return ? target.[[GetPrototypeOf]]().
28.1.8 Reflect.has ( target, propertyKey )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let key be ?  ToPropertyKey (propertyKey).
  3. Return ? target.[[HasProperty]](key).
28.1.9 Reflect.isExtensible ( target )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Return ? target.[[IsExtensible]]().
28.1.10 Reflect.ownKeys ( target )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let keys be ? target.[[OwnPropertyKeys]]().
  3. Return CreateArrayFromList (keys).
28.1.11 Reflect.preventExtensions ( target )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Return ? target.[[PreventExtensions]]().
28.1.12 Reflect.set ( target, propertyKey, V [ , receiver ] )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. Let key be ?  ToPropertyKey (propertyKey).
  3. If receiver is not present, then
    1. Set receiver to target.
  4. Return ? target.[[Set]](key, V, receiver).
28.1.13 Reflect.setPrototypeOf ( target, proto )

This function performs the following steps when called:

  1. If target is not an Object , throw a TypeError exception.
  2. If proto is not an Object and proto is not null , throw a TypeError exception.
  3. Return ? target.[[SetPrototypeOf]](proto).
28.1.14 Reflect [ %Symbol.toStringTag% ]

The initial value of the %Symbol.toStringTag% property is the String value "Reflect" .

This property has the attributes { [[Writable]]: false , [[Enumerable]]: false , [[Configurable]]: true }.

28.3 Module Namespace Objects

A Module Namespace Object is a module namespace exotic object that provides runtime property-based access to a module's exported bindings. There is no constructor function for Module Namespace Objects. Instead, such an object is created for each module that is imported by an ImportDeclaration that contains a NameSpaceImport .

In addition to the properties specified in 10.4.6 each Module Namespace Object has the following own property:

28.3.1 %Symbol.toStringTag%

The initial value of the %Symbol.toStringTag% property is the String value "Module" .

This property has the attributes { [[Writable]]: false , [[Enumerable]]: false , [[Configurable]]: false }.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4