From 72ec0b8f1d9b1416e535468e1a0c5c0e8bcd7c1c Mon Sep 17 00:00:00 2001 From: Dunqing Date: Mon, 25 Nov 2024 18:47:05 +0800 Subject: [PATCH] fix(transformer/async-to-generator): correct the SymbolFlags of function id in module --- .../src/es2017/async_to_generator.rs | 30 +- tasks/coverage/snapshots/semantic_babel.snap | 20 +- .../coverage/snapshots/semantic_test262.snap | 47 +- .../snapshots/semantic_typescript.snap | 253 +-------- .../snapshots/babel.snap.md | 354 +++++++++++- .../snapshots/babel_exec.snap.md | 537 ++++++++++++++++-- 6 files changed, 884 insertions(+), 357 deletions(-) diff --git a/crates/oxc_transformer/src/es2017/async_to_generator.rs b/crates/oxc_transformer/src/es2017/async_to_generator.rs index 62702f3252f920..6f48c01311d7e8 100644 --- a/crates/oxc_transformer/src/es2017/async_to_generator.rs +++ b/crates/oxc_transformer/src/es2017/async_to_generator.rs @@ -284,7 +284,12 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> { (scope_id, wrapper_scope_id) }; - let bound_ident = Self::create_bound_identifier(id.as_ref(), wrapper_scope_id, ctx); + let bound_ident = Self::create_bound_identifier( + id.as_ref(), + wrapper_scope_id, + SymbolFlags::FunctionScopedVariable, + ctx, + ); let caller_function = { let scope_id = ctx.create_child_scope(wrapper_scope_id, ScopeFlags::Function); @@ -359,9 +364,18 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> { let params = Self::create_placeholder_params(&wrapper_function.params, wrapper_scope_id, ctx); let params = mem::replace(&mut wrapper_function.params, params); + + // TODO: Needs a better way to handle the function SymbolFlags in different ModuleKind. + let flags = if self.ctx.source_type.is_module() && ctx.current_scope_flags().is_top() { + SymbolFlags::BlockScopedVariable | SymbolFlags::Function + } else { + SymbolFlags::FunctionScopedVariable + }; + let bound_ident = Self::create_bound_identifier( wrapper_function.id.as_ref(), ctx.current_scope_id(), + flags, ctx, ); @@ -442,7 +456,12 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> { // to change the parent scope of the generator function to the wrapper function. ctx.scopes_mut().change_parent_id(generator_function_id, Some(wrapper_scope_id)); - let bound_ident = Self::create_bound_identifier(None, wrapper_scope_id, ctx); + let bound_ident = Self::create_bound_identifier( + None, + wrapper_scope_id, + SymbolFlags::FunctionScopedVariable, + ctx, + ); let caller_function = { let scope_id = ctx.create_child_scope(wrapper_scope_id, ScopeFlags::Function); @@ -739,13 +758,10 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> { fn create_bound_identifier( id: Option<&BindingIdentifier<'a>>, scope_id: ScopeId, + flags: SymbolFlags, ctx: &mut TraverseCtx<'a>, ) -> BoundIdentifier<'a> { - ctx.generate_uid( - id.as_ref().map_or_else(|| "ref", |id| id.name.as_str()), - scope_id, - SymbolFlags::FunctionScopedVariable, - ) + ctx.generate_uid(id.as_ref().map_or_else(|| "ref", |id| id.name.as_str()), scope_id, flags) } /// Check whether the given [`Ancestor`] is a class method-like node. diff --git a/tasks/coverage/snapshots/semantic_babel.snap b/tasks/coverage/snapshots/semantic_babel.snap index 11c6625c9d69d5..e6e8101c93c036 100644 --- a/tasks/coverage/snapshots/semantic_babel.snap +++ b/tasks/coverage/snapshots/semantic_babel.snap @@ -2,7 +2,7 @@ commit: 54a8389f semantic_babel Summary: AST Parsed : 2218/2218 (100.00%) -Positive Passed: 1846/2218 (83.23%) +Positive Passed: 1849/2218 (83.36%) tasks/coverage/babel/packages/babel-parser/test/fixtures/annex-b/enabled/3.3-function-in-if-body/input.js semantic error: Symbol scope ID mismatch for "f": after transform: SymbolId(0): ScopeId(4294967294) @@ -26,24 +26,6 @@ semantic error: A 'return' statement can only be used within a function body. tasks/coverage/babel/packages/babel-parser/test/fixtures/core/uncategorised/328/input.js semantic error: A 'return' statement can only be used within a function body. -tasks/coverage/babel/packages/babel-parser/test/fixtures/es2015/uncategorised/385/input.js -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/babel/packages/babel-parser/test/fixtures/es2017/async-functions/25/input.js -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/babel/packages/babel-parser/test/fixtures/es2017/async-functions/export/input.js -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) -Symbol flags mismatch for "_bar": -after transform: SymbolId(4): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(4): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/babel/packages/babel-parser/test/fixtures/es2022/class-private-properties/await-in-private-property-in-params-of-async-arrow/input.js semantic error: Expected a semicolon or an implicit semicolon after a statement, but found none diff --git a/tasks/coverage/snapshots/semantic_test262.snap b/tasks/coverage/snapshots/semantic_test262.snap index a3612d5022c01b..2b502c68cd8fef 100644 --- a/tasks/coverage/snapshots/semantic_test262.snap +++ b/tasks/coverage/snapshots/semantic_test262.snap @@ -2,7 +2,7 @@ commit: fd979d85 semantic_test262 Summary: AST Parsed : 44026/44026 (100.00%) -Positive Passed: 43486/44026 (98.77%) +Positive Passed: 43495/44026 (98.79%) tasks/coverage/test262/test/annexB/language/function-code/if-decl-else-decl-a-func-block-scoping.js semantic error: Symbol scope ID mismatch for "f": after transform: SymbolId(3): ScopeId(4294967294) @@ -3220,41 +3220,6 @@ Symbol scope ID mismatch for "x": after transform: SymbolId(4): ScopeId(7) rebuilt : SymbolId(5): ScopeId(4) -tasks/coverage/test262/test/language/expressions/dynamic-import/catch/nested-async-function-await-eval-script-code-target.js -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/expressions/dynamic-import/catch/nested-async-function-eval-script-code-target.js -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/expressions/dynamic-import/catch/nested-async-function-return-await-eval-script-code-target.js -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/expressions/dynamic-import/catch/nested-async-gen-await-eval-script-code-target.js -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/expressions/dynamic-import/catch/nested-async-gen-return-await-eval-script-code-target.js -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/expressions/dynamic-import/imported-self-update.js -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/expressions/dynamic-import/namespace/await-ns-get-nested-namespace-dflt-indirect.js -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(4): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/test262/test/language/expressions/object/dstr/async-gen-meth-ary-ptrn-elem-ary-empty-init.js semantic error: Scope children mismatch: after transform: ScopeId(5): [ScopeId(2)] @@ -3812,16 +3777,6 @@ Symbol scope ID mismatch for "_obj3$a": after transform: SymbolId(7): ScopeId(8) rebuilt : SymbolId(1): ScopeId(0) -tasks/coverage/test262/test/language/module-code/export-default-asyncfunction-declaration-binding.js -semantic error: Symbol flags mismatch for "_A": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/test262/test/language/module-code/export-default-asyncgenerator-declaration-binding.js -semantic error: Symbol flags mismatch for "_AG": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/test262/test/language/module-code/top-level-await/syntax/for-await-await-expr-func-expression.js semantic error: Scope children mismatch: after transform: ScopeId(14): [ScopeId(1)] diff --git a/tasks/coverage/snapshots/semantic_typescript.snap b/tasks/coverage/snapshots/semantic_typescript.snap index 7266d2a4a35c01..a92c966d0f7d62 100644 --- a/tasks/coverage/snapshots/semantic_typescript.snap +++ b/tasks/coverage/snapshots/semantic_typescript.snap @@ -2,7 +2,7 @@ commit: d85767ab semantic_typescript Summary: AST Parsed : 6503/6503 (100.00%) -Positive Passed: 2665/6503 (40.98%) +Positive Passed: 2699/6503 (41.50%) tasks/coverage/typescript/tests/cases/compiler/2dArrays.ts semantic error: Symbol reference IDs mismatch for "Cell": after transform: SymbolId(0): [ReferenceId(1)] @@ -9146,15 +9146,9 @@ rebuilt : ScopeId(11): ["f"] Symbol reference IDs mismatch for "bluebird": after transform: SymbolId(0): [ReferenceId(1), ReferenceId(2), ReferenceId(4), ReferenceId(6), ReferenceId(8), ReferenceId(10), ReferenceId(12), ReferenceId(31), ReferenceId(33), ReferenceId(35), ReferenceId(37), ReferenceId(39), ReferenceId(41)] rebuilt : SymbolId(1): [ReferenceId(4), ReferenceId(21)] -Symbol flags mismatch for "_runSampleWorks": -after transform: SymbolId(41): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(8): SymbolFlags(BlockScopedVariable | Function) Symbol reference IDs mismatch for "func": after transform: SymbolId(15): [ReferenceId(28), ReferenceId(29)] rebuilt : SymbolId(16): [ReferenceId(13)] -Symbol flags mismatch for "_runSampleBreaks": -after transform: SymbolId(48): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(25): SymbolFlags(BlockScopedVariable | Function) Symbol reference IDs mismatch for "func": after transform: SymbolId(32): [ReferenceId(57), ReferenceId(58)] rebuilt : SymbolId(33): [ReferenceId(30)] @@ -11012,10 +11006,7 @@ after transform: ScopeId(0): [ScopeId(1), ScopeId(2), ScopeId(4), ScopeId(6), Sc rebuilt : ScopeId(0): [ScopeId(1), ScopeId(3), ScopeId(5), ScopeId(7), ScopeId(9), ScopeId(11), ScopeId(13), ScopeId(14), ScopeId(15), ScopeId(16), ScopeId(17), ScopeId(19), ScopeId(21)] tasks/coverage/typescript/tests/cases/compiler/dtsEmitTripleSlashAvoidUnnecessaryResolutionMode.ts -semantic error: Symbol flags mismatch for "_drainStream": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) -Unresolved references mismatch: +semantic error: Unresolved references mismatch: after transform: ["NodeJS", "Promise", "arguments"] rebuilt : ["arguments"] @@ -13584,11 +13575,6 @@ Unresolved references mismatch: after transform: ["arguments", "require"] rebuilt : ["arguments", "require", "x", "y"] -tasks/coverage/typescript/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["foo"] @@ -14560,10 +14546,7 @@ after transform: ["Function", "Q", "_try"] rebuilt : ["Q"] tasks/coverage/typescript/tests/cases/compiler/exportDefaultAsyncFunction.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) -Unresolved references mismatch: +semantic error: Unresolved references mismatch: after transform: ["Promise", "arguments"] rebuilt : ["arguments"] @@ -25197,9 +25180,6 @@ rebuilt : SymbolId(5): SymbolFlags(BlockScopedVariable) Symbol reference IDs mismatch for "GatewayOpcode": after transform: SymbolId(14): [ReferenceId(6), ReferenceId(11), ReferenceId(13), ReferenceId(16), ReferenceId(27), ReferenceId(28)] rebuilt : SymbolId(5): [] -Symbol flags mismatch for "_adaptSession": -after transform: SymbolId(33): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(11): SymbolFlags(BlockScopedVariable | Function) tasks/coverage/typescript/tests/cases/compiler/newArrays.ts semantic error: Missing SymbolId: "M" @@ -35412,9 +35392,6 @@ tasks/coverage/typescript/tests/cases/compiler/transformNestedGeneratorsWithTry. semantic error: Symbol reference IDs mismatch for "Bluebird": after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1), ReferenceId(2)] rebuilt : SymbolId(0): [ReferenceId(5)] -Symbol flags mismatch for "_a": -after transform: SymbolId(8): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) tasks/coverage/typescript/tests/cases/compiler/transformsElideNullUndefinedType.ts semantic error: Scope children mismatch: @@ -38865,11 +38842,6 @@ semantic error: Bindings mismatch: after transform: ScopeId(1): ["T"] rebuilt : ScopeId(1): [] -tasks/coverage/typescript/tests/cases/conformance/async/es5/asyncMultiFile_es5.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts semantic error: Missing SymbolId: "X" Missing SymbolId: "_X" @@ -39290,11 +39262,6 @@ Unresolved references mismatch: after transform: ["Promise", "arguments", "require"] rebuilt : ["arguments", "mp", "p", "require"] -tasks/coverage/typescript/tests/cases/conformance/async/es6/asyncMultiFile_es6.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/async/es6/asyncUseStrict_es6.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["_asyncToGenerator", "_func", "a", "func", "p"] @@ -39625,9 +39592,6 @@ tasks/coverage/typescript/tests/cases/conformance/asyncGenerators/asyncGenerator semantic error: Bindings mismatch: after transform: ScopeId(1): ["T", "a"] rebuilt : ScopeId(3): ["a"] -Symbol flags mismatch for "_test": -after transform: SymbolId(4): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) Unresolved references mismatch: after transform: ["AsyncGenerator", "arguments"] rebuilt : ["arguments"] @@ -41549,11 +41513,6 @@ semantic error: Unresolved references mismatch: after transform: ["Promise"] rebuilt : [] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpression3ES2020.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpression4ES2020.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["C", "_asyncToGenerator", "console"] @@ -41571,51 +41530,6 @@ Unresolved references mismatch: after transform: ["arguments"] rebuilt : ["arguments", "console"] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES2020.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES6AMD.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES6CJS.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES6System.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES6UMD.ts -semantic error: Symbol flags mismatch for "_fn": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionDeclarationEmit1.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["directory", "moduleFile", "p0", "p1", "p2", "returnDynamicLoad", "whatToLoad"] @@ -41652,11 +41566,6 @@ semantic error: Unresolved references mismatch: after transform: ["Promise"] rebuilt : [] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInAMD3.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInAMD4.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["C", "D", "_asyncToGenerator", "console"] @@ -41684,10 +41593,7 @@ after transform: ["arguments"] rebuilt : ["arguments", "console"] tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInCJS2.ts -semantic error: Symbol flags mismatch for "_compute": -after transform: SymbolId(4): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) -Unresolved references mismatch: +semantic error: Unresolved references mismatch: after transform: ["Promise", "arguments"] rebuilt : ["arguments"] @@ -41696,11 +41602,6 @@ semantic error: Unresolved references mismatch: after transform: ["Promise"] rebuilt : [] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInCJS4.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInCJS5.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["C", "D", "_asyncToGenerator", "console"] @@ -41735,11 +41636,6 @@ semantic error: Unresolved references mismatch: after transform: ["Promise"] rebuilt : [] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInSystem3.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInSystem4.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["C", "D", "_asyncToGenerator", "console"] @@ -41771,11 +41667,6 @@ semantic error: Unresolved references mismatch: after transform: ["Promise"] rebuilt : [] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInUMD3.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInUMD4.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["C", "D", "_asyncToGenerator", "console"] @@ -41802,61 +41693,6 @@ Unresolved references mismatch: after transform: ["arguments"] rebuilt : ["arguments", "console"] -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInUMD5.ts -semantic error: Symbol flags mismatch for "_func": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedES2020.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts -semantic error: Symbol flags mismatch for "_foo": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionReturnPromiseOfAny.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["defaultModule", "directory", "j", "loadModule", "moduleFile", "p1", "p11", "p2", "p3", "whatToLoad"] @@ -41877,21 +41713,6 @@ Unresolved references mismatch: after transform: ["Promise", "ValidSomeCondition", "getSpecifier"] rebuilt : ["ValidSomeCondition", "directory", "getSpecifier", "moduleFile", "whatToLoad"] -tasks/coverage/typescript/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2015.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2018.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/enums/enumBasics.ts semantic error: Bindings mismatch: after transform: ScopeId(1): ["A", "B", "C", "E1"] @@ -49406,9 +49227,6 @@ tasks/coverage/typescript/tests/cases/conformance/importAttributes/importAttribu semantic error: Bindings mismatch: after transform: ScopeId(0): ["_asyncToGenerator", "_f", "a", "f"] rebuilt : ScopeId(0): ["_asyncToGenerator", "_f", "f"] -Symbol flags mismatch for "_f": -after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) tasks/coverage/typescript/tests/cases/conformance/importAttributes/importAttributes8.ts semantic error: Bindings mismatch: @@ -51062,9 +50880,6 @@ rebuilt : ScopeId(0): [ScopeId(1), ScopeId(3), ScopeId(4), ScopeId(6)] Bindings mismatch: after transform: ScopeId(3): ["TResult"] rebuilt : ScopeId(1): [] -Symbol flags mismatch for "_load": -after transform: SymbolId(9): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(5): SymbolFlags(BlockScopedVariable | Function) Unresolved references mismatch: after transform: ["Exclude", "Promise", "arguments", "true"] rebuilt : ["arguments"] @@ -52556,16 +52371,6 @@ semantic error: Expected a semicolon or an implicit semicolon after a statement, tasks/coverage/typescript/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts semantic error: Expected a semicolon or an implicit semicolon after a statement, but found none -tasks/coverage/typescript/tests/cases/conformance/node/allowJs/nodeModulesAllowJsDynamicImport.ts -semantic error: Symbol flags mismatch for "_main": -after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - -tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesDynamicImport.ts -semantic error: Symbol flags mismatch for "_main": -after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesImportAssignments.ts semantic error: Missing SymbolId: "fs" Missing ReferenceId: "require" @@ -53589,12 +53394,6 @@ rebuilt : ScopeId(0): [SymbolId(0), SymbolId(1), SymbolId(2), SymbolId(3) Binding symbols mismatch: after transform: ScopeId(37): [SymbolId(27), SymbolId(44)] rebuilt : ScopeId(43): [SymbolId(32), SymbolId(33)] -Symbol flags mismatch for "_af": -after transform: SymbolId(45): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(7): SymbolFlags(BlockScopedVariable | Function) -Symbol flags mismatch for "_ag": -after transform: SymbolId(48): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(12): SymbolFlags(BlockScopedVariable | Function) tasks/coverage/typescript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsDeclarationEmit.2.ts semantic error: Bindings mismatch: @@ -53899,11 +53698,6 @@ Unresolved references mismatch: after transform: [] rebuilt : ["dec"] -tasks/coverage/typescript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithObjectLiterals2.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(4): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) - tasks/coverage/typescript/tests/cases/conformance/statements/VariableStatements/validMultipleVariableDeclarations.ts semantic error: Bindings mismatch: after transform: ScopeId(0): ["Point", "a", "declSpace", "fn", "p", "x"] @@ -53922,9 +53716,27 @@ after transform: SymbolId(8): [ReferenceId(9)] rebuilt : SymbolId(7): [] tasks/coverage/typescript/tests/cases/conformance/statements/for-await-ofStatements/emitter.forAwait.ts -semantic error: Symbol flags mismatch for "_f": -after transform: SymbolId(10): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Function) +semantic error: Bindings mismatch: +after transform: ScopeId(1): ["y"] +rebuilt : ScopeId(3): ["_didIteratorError", "_iterator", "_iteratorAbruptCompletion", "_iteratorError", "_step", "y"] +Bindings mismatch: +after transform: ScopeId(3): ["_didIteratorError", "_iterator", "_iteratorAbruptCompletion", "_iteratorError", "_step"] +rebuilt : ScopeId(5): [] +Symbol scope ID mismatch for "_iteratorAbruptCompletion": +after transform: SymbolId(6): ScopeId(3) +rebuilt : SymbolId(6): ScopeId(3) +Symbol scope ID mismatch for "_didIteratorError": +after transform: SymbolId(5): ScopeId(3) +rebuilt : SymbolId(7): ScopeId(3) +Symbol scope ID mismatch for "_iteratorError": +after transform: SymbolId(7): ScopeId(3) +rebuilt : SymbolId(8): ScopeId(3) +Symbol scope ID mismatch for "_iterator": +after transform: SymbolId(8): ScopeId(3) +rebuilt : SymbolId(9): ScopeId(3) +Symbol scope ID mismatch for "_step": +after transform: SymbolId(3): ScopeId(3) +rebuilt : SymbolId(10): ScopeId(3) tasks/coverage/typescript/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts semantic error: Unresolved references mismatch: @@ -54232,21 +54044,6 @@ rebuilt : ScopeId(0): ["_asyncToGenerator", "_copyExtensions", "_fn", "_f Scope children mismatch: after transform: ScopeId(0): [ScopeId(1), ScopeId(8), ScopeId(9), ScopeId(10), ScopeId(11), ScopeId(12), ScopeId(13), ScopeId(14), ScopeId(15), ScopeId(20), ScopeId(21), ScopeId(22), ScopeId(26), ScopeId(27), ScopeId(28), ScopeId(29), ScopeId(30), ScopeId(31), ScopeId(32), ScopeId(33), ScopeId(36), ScopeId(37)] rebuilt : ScopeId(0): [ScopeId(1), ScopeId(2), ScopeId(4), ScopeId(5), ScopeId(8), ScopeId(9), ScopeId(11), ScopeId(12), ScopeId(15), ScopeId(20), ScopeId(21)] -Symbol flags mismatch for "_fn": -after transform: SymbolId(26): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | Function) -Symbol flags mismatch for "_fn2": -after transform: SymbolId(28): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(4): SymbolFlags(BlockScopedVariable | Function) -Symbol flags mismatch for "_fn3": -after transform: SymbolId(29): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(7): SymbolFlags(BlockScopedVariable | Function) -Symbol flags mismatch for "_fn4": -after transform: SymbolId(30): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(9): SymbolFlags(BlockScopedVariable | Function) -Symbol flags mismatch for "_copyExtensions": -after transform: SymbolId(34): SymbolFlags(FunctionScopedVariable) -rebuilt : SymbolId(16): SymbolFlags(BlockScopedVariable | Function) Reference symbol mismatch for "test": after transform: SymbolId(11) "test" rebuilt : diff --git a/tasks/transform_conformance/snapshots/babel.snap.md b/tasks/transform_conformance/snapshots/babel.snap.md index f7f47b197207d4..a6492cb4f3e2ea 100644 --- a/tasks/transform_conformance/snapshots/babel.snap.md +++ b/tasks/transform_conformance/snapshots/babel.snap.md @@ -1,6 +1,6 @@ commit: 54a8389f -Passed: 359/701 +Passed: 406/846 # All Passed: * babel-plugin-transform-class-static-block @@ -276,7 +276,7 @@ x Output mismatch x Output mismatch -# babel-plugin-transform-class-properties (32/119) +# babel-plugin-transform-class-properties (79/264) * assumption-constantSuper/complex-super-class/input.js x Output mismatch @@ -299,7 +299,15 @@ x Output mismatch x Output mismatch * assumption-setPublicClassFields/foobar/input.js -x Output mismatch +Scope children mismatch: +after transform: ScopeId(1): [ScopeId(2), ScopeId(3)] +rebuilt : ScopeId(1): [ScopeId(2)] +Scope children mismatch: +after transform: ScopeId(2): [] +rebuilt : ScopeId(2): [ScopeId(3)] +Scope parent mismatch: +after transform: ScopeId(3): Some(ScopeId(1)) +rebuilt : ScopeId(3): Some(ScopeId(2)) * assumption-setPublicClassFields/regression-T7364/input.mjs Scope children mismatch: @@ -354,6 +362,12 @@ x Output mismatch * class-name-tdz/general/input.js x Output mismatch +* class-name-tdz/static-edgest-case/input.js +x Output mismatch + +* class-name-tdz/static-general/input.js +x Output mismatch + * class-name-tdz/static-loose/input.js x Output mismatch @@ -367,9 +381,91 @@ Unresolved references mismatch: after transform: ["T"] rebuilt : [] +* nested-class/super-call-in-decorator/input.js +x Output mismatch + +* nested-class/super-property-in-accessor-key/input.js +x Output mismatch + +* nested-class/super-property-in-decorator/input.js +x Output mismatch + +* private/1-helpermemberexpressionfunction/input.js +x Output mismatch + +* private/call/input.js +Scope children mismatch: +after transform: ScopeId(1): [ScopeId(2), ScopeId(3), ScopeId(4)] +rebuilt : ScopeId(1): [ScopeId(2), ScopeId(4)] +Scope children mismatch: +after transform: ScopeId(4): [] +rebuilt : ScopeId(2): [ScopeId(3)] +Scope parent mismatch: +after transform: ScopeId(2): Some(ScopeId(1)) +rebuilt : ScopeId(3): Some(ScopeId(2)) + * private/class-shadow-builtins/input.mjs x Output mismatch +* private/constructor-collision/input.js +x Output mismatch + +* private/derived-multiple-supers/input.js +x Output mismatch + +* private/destructuring-array-pattern/input.js +x Output mismatch + +* private/destructuring-array-pattern-1/input.js +x Output mismatch + +* private/destructuring-array-pattern-2/input.js +x Output mismatch + +* private/destructuring-array-pattern-3/input.js +x Output mismatch + +* private/destructuring-array-pattern-static/input.js +x Output mismatch + +* private/destructuring-object-pattern/input.js +x Output mismatch + +* private/destructuring-object-pattern-1/input.js +x Output mismatch + +* private/destructuring-object-pattern-2/input.js +x Output mismatch + +* private/destructuring-object-pattern-3/input.js +x Output mismatch + +* private/destructuring-object-pattern-static/input.js +x Output mismatch + +* private/extracted-this/input.js +x Output mismatch + +* private/foobar/input.js +Scope children mismatch: +after transform: ScopeId(1): [ScopeId(2), ScopeId(3)] +rebuilt : ScopeId(1): [ScopeId(2)] +Scope children mismatch: +after transform: ScopeId(2): [] +rebuilt : ScopeId(2): [ScopeId(3)] +Scope parent mismatch: +after transform: ScopeId(3): Some(ScopeId(1)) +rebuilt : ScopeId(3): Some(ScopeId(2)) + +* private/nested-class-computed-redeclared/input.js +x Output mismatch + +* private/nested-class-extends-computed/input.js +x Output mismatch + +* private/nested-class-extends-computed-redeclared/input.js +x Output mismatch + * private/optional-chain-before-member-call/input.js x Output mismatch @@ -427,6 +523,26 @@ x Output mismatch * private/regression-T7364/input.mjs x Output mismatch +* private/static-call/input.js +Scope children mismatch: +after transform: ScopeId(0): [ScopeId(1)] +rebuilt : ScopeId(0): [ScopeId(1), ScopeId(3)] +Scope children mismatch: +after transform: ScopeId(1): [ScopeId(2), ScopeId(3)] +rebuilt : ScopeId(1): [ScopeId(2)] +Scope flags mismatch: +after transform: ScopeId(2): ScopeFlags(StrictMode | Function) +rebuilt : ScopeId(3): ScopeFlags(Function) +Scope parent mismatch: +after transform: ScopeId(2): Some(ScopeId(1)) +rebuilt : ScopeId(3): Some(ScopeId(0)) +Symbol reference IDs mismatch for "Foo": +after transform: SymbolId(0): [ReferenceId(1), ReferenceId(4)] +rebuilt : SymbolId(0): [ReferenceId(1)] + +* private/static-class-binding/input.js +x Output mismatch + * private/static-infer-name/input.js x Output mismatch @@ -436,15 +552,111 @@ x Output mismatch * private/static-shadow/input.js x Output mismatch +* private/static-this/input.js +x Output mismatch + +* private/super-expression/input.js +x Output mismatch + +* private/tagged-template/input.js +x Output mismatch + +* private-loose/assignment/input.js +x Output mismatch + +* private-loose/call/input.js +x Output mismatch + +* private-loose/canonical/input.js +x Output mismatch + * private-loose/class-shadow-builtins/input.mjs x Output mismatch +* private-loose/constructor-collision/input.js +x Output mismatch + +* private-loose/declaration-order/input.js +x Output mismatch + +* private-loose/derived/input.js +x Output mismatch + +* private-loose/derived-multiple-supers/input.js +x Output mismatch + +* private-loose/destructuring-array-pattern/input.js +x Output mismatch + +* private-loose/destructuring-array-pattern-1/input.js +x Output mismatch + +* private-loose/destructuring-array-pattern-2/input.js +x Output mismatch + +* private-loose/destructuring-array-pattern-3/input.js +x Output mismatch + +* private-loose/destructuring-array-pattern-static/input.js +x Output mismatch + +* private-loose/destructuring-object-pattern/input.js +x Output mismatch + +* private-loose/destructuring-object-pattern-1/input.js +x Output mismatch + +* private-loose/destructuring-object-pattern-2/input.js +x Output mismatch + +* private-loose/destructuring-object-pattern-3/input.js +x Output mismatch + +* private-loose/destructuring-object-pattern-static/input.js +x Output mismatch + +* private-loose/extracted-this/input.js +x Output mismatch + +* private-loose/foobar/input.js +x Output mismatch + +* private-loose/instance/input.js +x Output mismatch + +* private-loose/instance-undefined/input.js +x Output mismatch + * private-loose/logical-assignment/input.js x Output mismatch +* private-loose/multiple/input.js +x Output mismatch + * private-loose/native-classes/input.js x Output mismatch +* private-loose/nested-class/input.js +x Output mismatch + +* private-loose/nested-class-computed/input.js +x Output mismatch + +* private-loose/nested-class-computed-redeclared/input.js +x Output mismatch + +* private-loose/nested-class-extends-computed/input.js +x Output mismatch + +* private-loose/nested-class-extends-computed-redeclared/input.js +x Output mismatch + +* private-loose/nested-class-other-redeclared/input.js +x Output mismatch + +* private-loose/nested-class-redeclared/input.js +x Output mismatch + * private-loose/non-block-arrow-func/input.mjs x Output mismatch @@ -502,12 +714,27 @@ x Output mismatch * private-loose/parenthesized-optional-member-call-with-transform/input.js x Output mismatch +* private-loose/preserve-comments/input.js +x Output mismatch + +* private-loose/private-in-derived/input.js +x Output mismatch + * private-loose/reevaluated/input.js x Output mismatch +* private-loose/reference-in-other-property/input.js +x Output mismatch + * private-loose/static/input.js x Output mismatch +* private-loose/static-call/input.js +x Output mismatch + +* private-loose/static-class-binding/input.js +x Output mismatch + * private-loose/static-export/input.mjs x Output mismatch @@ -520,12 +747,53 @@ x Output mismatch * private-loose/static-shadow/input.js x Output mismatch +* private-loose/static-this/input.js +x Output mismatch + * private-loose/static-undefined/input.js x Output mismatch +* private-loose/super-expression/input.js +x Output mismatch + +* private-loose/super-statement/input.js +x Output mismatch + +* private-loose/update/input.js +x Output mismatch + +* public/arrow-static-this-without-transform/input.js +x Output mismatch + +* public/call/input.js +Scope children mismatch: +after transform: ScopeId(1): [ScopeId(2), ScopeId(3), ScopeId(4)] +rebuilt : ScopeId(1): [ScopeId(2), ScopeId(4)] +Scope children mismatch: +after transform: ScopeId(4): [] +rebuilt : ScopeId(2): [ScopeId(3)] +Scope parent mismatch: +after transform: ScopeId(2): Some(ScopeId(1)) +rebuilt : ScopeId(3): Some(ScopeId(2)) + * public/class-shadow-builtins/input.mjs x Output mismatch +* public/computed/input.js +x Output mismatch + +* public/computed-toPrimitive/input.js +x Output mismatch + +* public/constructor-collision/input.js +x Output mismatch + +* public/delete-super-property/input.js +x Output mismatch + +* public/derived-multiple-supers/input.js +x Output mismatch + * public/derived-super-in-default-params/input.js x Output mismatch @@ -535,7 +803,24 @@ x Output mismatch * public/derived-super-in-default-params-in-arrow/input.js x Output mismatch +* public/extracted-this/input.js +x Output mismatch + * public/foobar/input.js +Scope children mismatch: +after transform: ScopeId(1): [ScopeId(2), ScopeId(3)] +rebuilt : ScopeId(1): [ScopeId(2)] +Scope children mismatch: +after transform: ScopeId(2): [] +rebuilt : ScopeId(2): [ScopeId(3)] +Scope parent mismatch: +after transform: ScopeId(3): Some(ScopeId(1)) +rebuilt : ScopeId(3): Some(ScopeId(2)) + +* public/non-block-arrow-func/input.mjs +x Output mismatch + +* public/regression-T2983/input.mjs x Output mismatch * public/regression-T7364/input.mjs @@ -567,9 +852,48 @@ Scope parent mismatch: after transform: ScopeId(6): Some(ScopeId(5)) rebuilt : ScopeId(9): Some(ScopeId(8)) +* public/static-class-binding/input.js +x Output mismatch + +* public/static-export/input.mjs +x Output mismatch + +* public/static-infer-name/input.js +x Output mismatch + +* public/static-super/input.js +x Output mismatch + +* public/static-this/input.js +x Output mismatch + +* public/super-expression/input.js +x Output mismatch + +* public/super-with-collision/input.js +x Output mismatch + +* public-loose/arrow-static-this-without-transform/input.js +x Output mismatch + * public-loose/class-shadow-builtins/input.mjs x Output mismatch +* public-loose/computed/input.js +x Output mismatch + +* public-loose/constructor-collision/input.js +x Output mismatch + +* public-loose/foobar/input.js +x Output mismatch + +* public-loose/non-block-arrow-func/input.mjs +x Output mismatch + +* public-loose/regression-T2983/input.mjs +x Output mismatch + * public-loose/regression-T7364/input.mjs Scope children mismatch: after transform: ScopeId(1): [ScopeId(2), ScopeId(7)] @@ -599,6 +923,27 @@ Scope parent mismatch: after transform: ScopeId(6): Some(ScopeId(5)) rebuilt : ScopeId(9): Some(ScopeId(8)) +* public-loose/static-class-binding/input.js +x Output mismatch + +* public-loose/static-export/input.mjs +x Output mismatch + +* public-loose/static-infer-name/input.js +x Output mismatch + +* public-loose/static-super/input.js +x Output mismatch + +* public-loose/static-this/input.js +x Output mismatch + +* public-loose/super-expression/input.js +x Output mismatch + +* public-loose/super-with-collision/input.js +x Output mismatch + * regression/6153/input.js x Output mismatch @@ -625,6 +970,9 @@ Symbol scope ID mismatch for "_bar": after transform: SymbolId(4): ScopeId(2) rebuilt : SymbolId(3): ScopeId(0) +* regression/T2983/input.mjs +x Output mismatch + * regression/T7364/input.mjs Scope children mismatch: after transform: ScopeId(1): [ScopeId(2), ScopeId(7)] diff --git a/tasks/transform_conformance/snapshots/babel_exec.snap.md b/tasks/transform_conformance/snapshots/babel_exec.snap.md index caeccf98469f6c..fb90a454fe4127 100644 --- a/tasks/transform_conformance/snapshots/babel_exec.snap.md +++ b/tasks/transform_conformance/snapshots/babel_exec.snap.md @@ -1,7 +1,7 @@ commit: 54a8389f node: v22.11.0 -⎯⎯⎯⎯⎯⎯ Failed Suites 29 ⎯⎯⎯⎯⎯⎯ +⎯⎯⎯⎯⎯⎯ Failed Suites 57 ⎯⎯⎯⎯⎯⎯ FAIL fixtures/babel-plugin-transform-arrow-functions-test-fixtures-arrow-functions-implicit-var-arguments-exec.test.js [ fixtures/babel-plugin-transform-arrow-functions-test-fixtures-arrow-functions-implicit-var-arguments-exec.test.js ] Error: 'eval' and 'arguments' cannot be used as a binding identifier in strict mode @@ -11,17 +11,20 @@ Error: 'eval' and 'arguments' cannot be used as a binding identifier in strict m ❯ ssrTransformScript ../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52381:11 ❯ loadAndTransform ../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51979:72 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noDocumentAll-optional-chain-before-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noDocumentAll-optional-chain-before-member-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noUninitializedPrivateFieldAccess-static-private-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noUninitializedPrivateFieldAccess-static-private-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-setPublicClassFields-static-super-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-setPublicClassFields-static-super-exec.test.js ] + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-delete-super-property-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-delete-super-property-exec.test.js ] + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-super-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-super-exec.test.js ] + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-super-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-super-exec.test.js ] Error: Invalid access to super ❯ getRollupError ../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/es/shared/parseAst.js:396:41 ❯ convertProgram ../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/es/shared/parseAst.js:1084:26 @@ -29,109 +32,215 @@ Error: Invalid access to super ❯ ssrTransformScript ../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52381:11 ❯ loadAndTransform ../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51979:72 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-accessor-key-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-accessor-key-exec.test.js ] +Error: Unexpected token `[`. Expected * for generator, private key, identifier or async + ❯ getRollupError ../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/es/shared/parseAst.js:396:41 + ❯ convertProgram ../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/es/shared/parseAst.js:1084:26 + ❯ parseAstAsync ../../node_modules/.pnpm/rollup@4.27.3/node_modules/rollup/dist/es/shared/parseAst.js:2070:106 + ❯ ssrTransformScript ../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52381:11 + ❯ loadAndTransform ../../node_modules/.pnpm/vite@5.4.11_@types+node@22.9.1/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51979:72 + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-access-before-declaration-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-access-before-declaration-exec.test.js ] +SyntaxError: Private field '#p' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-1-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-1-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-2-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-2-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[8/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-3-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-3-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[9/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[10/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-static-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-array-pattern-static-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[11/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-1-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-1-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[12/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-2-exec-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-2-exec-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[13/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-3-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-3-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[14/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[15/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-static-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-destructuring-object-pattern-static-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[16/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-access-before-declaration-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-access-before-declaration-exec.test.js ] +SyntaxError: Private field '#p' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[17/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-1-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-1-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[18/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-2-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-2-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[19/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-3-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-3-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[20/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[21/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-static-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-array-pattern-static-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[22/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-1-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-1-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[23/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-2-exec-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-2-exec-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[24/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-3-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-3-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[25/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[26/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-static-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-destructuring-object-pattern-static-exec.test.js ] +SyntaxError: Private field '#client' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[27/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-nested-class-computed-redeclared-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-nested-class-computed-redeclared-exec.test.js ] +SyntaxError: Private field '#foo' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[28/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-member-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[29/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-member-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-member-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[30/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-property-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-property-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[31/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-in-function-param-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-in-function-param-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[8/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[32/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-in-function-param-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-in-function-param-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[9/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[33/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-member-optional-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-member-optional-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[10/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[34/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-member-optional-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-member-optional-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[11/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[35/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-member-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[12/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[36/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-member-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-member-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[13/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[37/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-property-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-property-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[14/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[38/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-parenthesized-optional-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-parenthesized-optional-member-call-exec.test.js ] SyntaxError: Private field '#m' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[15/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[39/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-parenthesized-optional-member-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-parenthesized-optional-member-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[16/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[40/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-nested-class-computed-redeclared-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-nested-class-computed-redeclared-exec.test.js ] +SyntaxError: Private field '#foo' must be declared in an enclosing class +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[41/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-member-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[17/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[42/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-member-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-member-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[18/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[43/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-property-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-property-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[19/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[44/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-in-function-param-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-in-function-param-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[20/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[45/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-in-function-param-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-in-function-param-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[21/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[46/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-member-optional-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-member-optional-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[22/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[47/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-member-optional-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-member-optional-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[23/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[48/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-member-call-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[24/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[49/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-member-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-member-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[25/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[50/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-property-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-property-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[26/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[51/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-parenthesized-optional-member-call-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-parenthesized-optional-member-call-exec.test.js ] SyntaxError: Private field '#m' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[27/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[52/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-parenthesized-optional-member-call-with-transform-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-parenthesized-optional-member-call-with-transform-exec.test.js ] SyntaxError: Private field '#x' must be declared in an enclosing class -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[28/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[53/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-regression-7371-exec.test.js [ fixtures/babel-plugin-transform-class-properties-test-fixtures-regression-7371-exec.test.js ] SyntaxError: 'super' keyword unexpected here -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[29/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[54/98]⎯ -⎯⎯⎯⎯⎯⎯ Failed Tests 23 ⎯⎯⎯⎯⎯⎯⎯ +⎯⎯⎯⎯⎯⎯ Failed Tests 41 ⎯⎯⎯⎯⎯⎯⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noDocumentAll-optional-chain-cast-to-boolean-exec.test.js > exec TypeError: Private element is not present on this object @@ -146,7 +255,7 @@ TypeError: Private element is not present on this object ❯ Function.testNullish fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noDocumentAll-optional-chain-cast-to-boolean-exec.test.js:89:14 ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-noDocumentAll-optional-chain-cast-to-boolean-exec.test.js:105:4 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[30/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[55/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-setPublicClassFields-static-class-binding-exec.test.js > exec AssertionError: expected null to be [Function A] // Object.is equality @@ -164,7 +273,7 @@ null | ^ 11| }) -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[31/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[56/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-setPublicClassFields-static-infer-name-exec.test.js > exec AssertionError: expected '_Class' to be 'Foo' // Object.is equality @@ -179,7 +288,7 @@ Received: "_Class" | ^ 9| }) -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[32/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[57/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-assumption-setPublicClassFields-static-this-exec.test.js > exec AssertionError: expected null to be [Function A] // Object.is equality @@ -197,7 +306,99 @@ null | ^ 14| }) -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[33/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[58/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-call-in-decorator-exec.test.js > exec +AssertionError: expected undefined to be 'hello' // Object.is equality + +- Expected: +"hello" + ++ Received: +undefined + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-call-in-decorator-exec.test.js:21:28 + 19| } + 20| } + 21| expect(new Outer().hello).toBe("hello"); + | ^ + 22| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[59/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-decorator-exec.test.js > exec +AssertionError: expected undefined to be 'hello' // Object.is equality + +- Expected: +"hello" + ++ Received: +undefined + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-decorator-exec.test.js:22:28 + 20| } + 21| } + 22| expect(new Outer().hello).toBe("hello"); + | ^ + 23| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[60/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-constructor-collision-exec.test.js > exec +AssertionError: expected undefined to be 'bar' // Object.is equality + +- Expected: +"bar" + ++ Received: +undefined + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-constructor-collision-exec.test.js:18:19 + 16| } + 17| const f = new Foo(); + 18| expect(f.test()).toBe(foo); + | ^ + 19| expect("bar" in f).toBe(false); + 20| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[61/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-constructor-collision-exec.test.js > exec +AssertionError: expected undefined to be 'bar' // Object.is equality + +- Expected: +"bar" + ++ Received: +undefined + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-constructor-collision-exec.test.js:18:19 + 16| } + 17| const f = new Foo(); + 18| expect(f.test()).toBe(foo); + | ^ + 19| expect("bar" in f).toBe(false); + 20| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[62/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-nested-class-extends-computed-exec.test.js > exec +AssertionError: expected [Function] to not throw an error but 'TypeError: Private element is not pre…' was thrown + +- Expected: +undefined + ++ Received: +"TypeError: Private element is not present on this object" + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-nested-class-extends-computed-exec.test.js:30:9 + 28| expect(() => { + 29| f.test(); + 30| }).not.toThrow(); + | ^ + 31| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[63/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-property-with-transform-exec.test.js > exec TypeError: Private element is not present on this object @@ -206,7 +407,7 @@ TypeError: Private element is not present on this object ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-before-property-with-transform-exec.test.js:110:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[34/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[64/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-cast-to-boolean-exec.test.js > exec TypeError: Private element is not present on this object @@ -221,7 +422,7 @@ TypeError: Private element is not present on this object ❯ Function.testNullish fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-cast-to-boolean-exec.test.js:89:14 ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-cast-to-boolean-exec.test.js:105:4 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[35/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[65/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-delete-property-exec.test.js > exec TypeError: Private element is not present on this object @@ -235,7 +436,7 @@ TypeError: Private element is not present on this object 58| expect(delete _assertClassBrand(Foo, o?.Foo, _self)._.self.unicorn)… ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-delete-property-exec.test.js:92:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[36/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[66/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-delete-property-with-transform-exec.test.js > exec AssertionError: expected function to throw an error, but it didn't @@ -243,7 +444,7 @@ AssertionError: expected function to throw an error, but it didn't ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-delete-property-with-transform-exec.test.js:158:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[37/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[67/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-property-with-transform-exec.test.js > exec TypeError: Private element is not present on this object @@ -252,7 +453,25 @@ TypeError: Private element is not present on this object ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-optional-chain-optional-property-with-transform-exec.test.js:113:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[38/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[68/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-class-binding-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-class-binding-exec.test.js:17:32 + 15| A = null; + 16| expect(oldA.extract().self).toBe(oldA); + 17| expect(oldA.extract().getA()).toBe(oldA); + | ^ + 18| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[69/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-shadow-exec.test.js > exec TypeError: e.has is not a function @@ -267,7 +486,43 @@ TypeError: e.has is not a function ❯ Function.method fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-shadow-exec.test.js:12:11 ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-shadow-exec.test.js:16:14 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[39/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[70/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-this-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-loose-static-this-exec.test.js:20:32 + 18| A = null; + 19| expect(oldA.extract().self).toBe(oldA); + 20| expect(oldA.extract().getA()).toBe(oldA); + | ^ + 21| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[71/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-nested-class-extends-computed-exec.test.js > exec +AssertionError: expected [Function] to not throw an error but 'TypeError: Private element is not pre…' was thrown + +- Expected: +undefined + ++ Received: +"TypeError: Private element is not present on this object" + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-nested-class-extends-computed-exec.test.js:31:9 + 29| expect(() => { + 30| f.test(); + 31| }).not.toThrow(); + | ^ + 32| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[72/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-property-with-transform-exec.test.js > exec TypeError: Private element is not present on this object @@ -276,7 +531,7 @@ TypeError: Private element is not present on this object ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-before-property-with-transform-exec.test.js:111:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[40/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[73/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-cast-to-boolean-exec.test.js > exec TypeError: Private element is not present on this object @@ -291,7 +546,7 @@ TypeError: Private element is not present on this object ❯ Function.testNullish fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-cast-to-boolean-exec.test.js:89:14 ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-cast-to-boolean-exec.test.js:105:4 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[41/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[74/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-delete-property-exec.test.js > exec TypeError: Private element is not present on this object @@ -305,7 +560,7 @@ TypeError: Private element is not present on this object 59| expect(delete _assertClassBrand(Foo, o?.Foo, _self)._.self.unicorn)… ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-delete-property-exec.test.js:93:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[42/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[75/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-delete-property-with-transform-exec.test.js > exec AssertionError: expected function to throw an error, but it didn't @@ -313,7 +568,7 @@ AssertionError: expected function to throw an error, but it didn't ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-delete-property-with-transform-exec.test.js:158:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[43/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[76/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-property-with-transform-exec.test.js > exec TypeError: Private element is not present on this object @@ -322,7 +577,25 @@ TypeError: Private element is not present on this object ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-optional-chain-optional-property-with-transform-exec.test.js:114:6 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[44/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[77/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-class-binding-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-class-binding-exec.test.js:17:32 + 15| A = null; + 16| expect(oldA.extract().self).toBe(oldA); + 17| expect(oldA.extract().getA()).toBe(oldA); + | ^ + 18| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[78/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-self-field-exec.test.js > exec ReferenceError: Foo is not defined @@ -334,7 +607,7 @@ ReferenceError: Foo is not defined 15| const { x, y } = f.extract(); 16| expect(x).toBe(f); -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[45/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[79/98]⎯ FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-shadow-exec.test.js > exec TypeError: e.has is not a function @@ -349,7 +622,163 @@ TypeError: e.has is not a function ❯ Function.method fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-shadow-exec.test.js:12:11 ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-shadow-exec.test.js:16:14 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[46/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[80/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-this-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-static-this-exec.test.js:20:32 + 18| A = null; + 19| expect(oldA.extract().self).toBe(oldA); + 20| expect(oldA.extract().getA()).toBe(oldA); + | ^ + 21| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[81/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-private-tagged-template-exec.test.js > exec +AssertionError: expected undefined to be Foo{} // Object.is equality + +- Expected: +Foo {} + ++ Received: +undefined + + ❯ new Foo fixtures/babel-plugin-transform-class-properties-test-fixtures-private-tagged-template-exec.test.js:18:22 + 16| expect(receiver).toBe(this); + 17| const receiver2 = _classPrivateFieldGet(_tag, this)`tagged template… + 18| expect(receiver2).toBe(this); + | ^ + 19| } + 20| } + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-private-tagged-template-exec.test.js:21:2 + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[82/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-computed-toPrimitive-exec.test.js > exec +AssertionError: expected [Function] to throw error including '@@toPrimitive must return a primitive…' but got 'Cannot convert object to primitive va…' + +Expected: "@@toPrimitive must return a primitive value." +Received: "Cannot convert object to primitive value" + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-computed-toPrimitive-exec.test.js:37:5 + 35| return 0; + 36| } + 37| }).toThrow("@@toPrimitive must return a primitive value."); + | ^ + 38| expect(() => class { + 39| static get [arrayLike]() { + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[83/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-class-binding-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-class-binding-exec.test.js:10:22 + 8| A = null; + 9| expect(oldA.self).toBe(oldA); + 10| expect(oldA.getA()).toBe(oldA); + | ^ + 11| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[84/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-infer-name-exec.test.js > exec +AssertionError: expected '_Class' to be 'Foo' // Object.is equality + +Expected: "Foo" +Received: "_Class" + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-infer-name-exec.test.js:8:19 + 6| expect(Foo.num).toBe(0); + 7| expect(Foo.num = 1).toBe(1); + 8| expect(Foo.name).toBe("Foo"); + | ^ + 9| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[85/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-this-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-loose-static-this-exec.test.js:13:22 + 11| A = null; + 12| expect(oldA.self).toBe(oldA); + 13| expect(oldA.getA()).toBe(oldA); + | ^ + 14| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[86/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-class-binding-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-class-binding-exec.test.js:11:22 + 9| A = null; + 10| expect(oldA.self).toBe(oldA); + 11| expect(oldA.getA()).toBe(oldA); + | ^ + 12| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[87/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-infer-name-exec.test.js > exec +AssertionError: expected '_Class' to be 'Foo' // Object.is equality + +Expected: "Foo" +Received: "_Class" + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-infer-name-exec.test.js:9:19 + 7| expect(Foo.num).toBe(0); + 8| expect(Foo.num = 1).toBe(1); + 9| expect(Foo.name).toBe("Foo"); + | ^ + 10| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[88/98]⎯ + + FAIL fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-this-exec.test.js > exec +AssertionError: expected null to be [Function A] // Object.is equality + +- Expected: +[Function A] + ++ Received: +null + + ❯ fixtures/babel-plugin-transform-class-properties-test-fixtures-public-static-this-exec.test.js:14:22 + 12| A = null; + 13| expect(oldA.self).toBe(oldA); + 14| expect(oldA.getA()).toBe(oldA); + | ^ + 15| }) + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[89/98]⎯ FAIL fixtures/babel-plugin-transform-optional-chaining-test-fixtures-assumption-noDocumentAll-parenthesized-expression-member-call-exec.test.js > exec TypeError: Cannot read properties of undefined (reading 'x') @@ -363,7 +792,7 @@ TypeError: Cannot read properties of undefined (reading 'x') ❯ Foo.test fixtures/babel-plugin-transform-optional-chaining-test-fixtures-assumption-noDocumentAll-parenthesized-expression-member-call-exec.test.js:25:63 ❯ fixtures/babel-plugin-transform-optional-chaining-test-fixtures-assumption-noDocumentAll-parenthesized-expression-member-call-exec.test.js:68:12 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[47/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[90/98]⎯ FAIL fixtures/babel-plugin-transform-optional-chaining-test-fixtures-general-parenthesized-expression-member-call-exec.test.js > exec TypeError: Cannot read properties of undefined (reading 'x') @@ -377,7 +806,7 @@ TypeError: Cannot read properties of undefined (reading 'x') ❯ Foo.test fixtures/babel-plugin-transform-optional-chaining-test-fixtures-general-parenthesized-expression-member-call-exec.test.js:25:63 ❯ fixtures/babel-plugin-transform-optional-chaining-test-fixtures-general-parenthesized-expression-member-call-exec.test.js:68:12 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[48/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[91/98]⎯ FAIL fixtures/babel-plugin-transform-optional-chaining-test-fixtures-general-parenthesized-expression-member-call-loose-exec.test.js > exec TypeError: Cannot read properties of undefined (reading 'x') @@ -391,7 +820,7 @@ TypeError: Cannot read properties of undefined (reading 'x') ❯ Foo.test fixtures/babel-plugin-transform-optional-chaining-test-fixtures-general-parenthesized-expression-member-call-loose-exec.test.js:25:63 ❯ fixtures/babel-plugin-transform-optional-chaining-test-fixtures-general-parenthesized-expression-member-call-loose-exec.test.js:68:12 -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[49/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[92/98]⎯ FAIL fixtures/babel-preset-env-test-fixtures-plugins-integration-issue-15170-exec.test.js > exec AssertionError: expected [Function] to not throw an error but 'ReferenceError: x is not defined' was thrown @@ -409,7 +838,7 @@ undefined | ^ 7| }) -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[50/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[93/98]⎯ FAIL fixtures/babel-preset-env-test-fixtures-sanity-check-es2015-constants-exec.test.js > exec TypeError: Assignment to constant variable. @@ -420,7 +849,7 @@ TypeError: Assignment to constant variable. | ^ 6| }) -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[51/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[94/98]⎯ FAIL fixtures/babel-preset-env-test-fixtures-sanity-regex-dot-all-exec.test.js > exec AssertionError: expected false to be true // Object.is equality @@ -439,5 +868,5 @@ AssertionError: expected false to be true // Object.is equality 11| expect(/hello.world/su.test(input)).toBe(true); 12| }) -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[52/52]⎯ +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[95/98]⎯