pub enum UnsupportedConstruct {
Show 21 variants
WithStatement,
UsingDeclaration,
LabeledStatement,
LabeledJump,
DebuggerStatement,
EnumDeclaration,
NamespaceDeclaration,
RuntimeImportEquals,
RuntimeExportAll,
ExportAssignment,
DecoratedDeclaration,
DynamicImportExpression,
ImportDeclarationInScript,
ExportDeclarationInScript,
DynamicImportInScript,
ImportMeta,
EscapedIdentifier,
NonDecimalBigInt,
ReturnOutsideFunction,
DerivedConstructorShape,
ThisBeforeDerivedSuper,
}Expand description
Runtime syntax this instruction set cannot express faithfully, or that carries no runtime semantics. Every variant names one rejected construct; there is no catch-all. None of these occur in the executable corpus.
Variants§
WithStatement
with opens a dynamic scope the register model cannot represent.
UsingDeclaration
using/await using explicit resource management (no disposal opcode).
LabeledStatement
A labeled statement (no labeled control-flow target model).
LabeledJump
A labeled break/continue.
DebuggerStatement
debugger is a host breakpoint request with no bytecode.
EnumDeclaration
A runtime enum (const enums are type-only and already erased).
NamespaceDeclaration
A runtime namespace/module block.
RuntimeImportEquals
A runtime import x = require(...) / import x = ns declaration.
RuntimeExportAll
A runtime export * from ... (no dynamic per-name re-export).
ExportAssignment
An export = assignment.
DecoratedDeclaration
A decorated declaration.
DynamicImportExpression
A dynamic import(expr) whose specifier is not a string literal.
ImportDeclarationInScript
An import declaration is invalid in a classic script.
ExportDeclarationInScript
An export declaration is invalid in a classic script.
DynamicImportInScript
A dynamic import expression is invalid in a classic script.
ImportMeta
import.meta (no host meta-object primitive).
EscapedIdentifier
An identifier spelled with unicode escape sequences.
NonDecimalBigInt
A non-decimal (0x/0o/0b) bigint literal.
ReturnOutsideFunction
A return at module top level.
DerivedConstructorShape
A derived constructor that is not an implicit constructor or a single
direct top-level super(...) call.
ThisBeforeDerivedSuper
A derived constructor references this before its direct super(...).
Trait Implementations§
Source§impl Clone for UnsupportedConstruct
impl Clone for UnsupportedConstruct
Source§fn clone(&self) -> UnsupportedConstruct
fn clone(&self) -> UnsupportedConstruct
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more