{"record":{"id":"341693f10280b771","repo":"emberjs/ember.js","slug":"unexpected-array-in-expression-position-wasn-t-a","errorCode":null,"errorMessage":"Unexpected array in expression position (wasn't a tuple expression and ${expression[0] as string} isn't wrapped in parens, so it isn't a call): ${JSON.stringify(expression)}","messagePattern":"Unexpected array in expression position \\(wasn't a tuple expression and (.+?) isn't wrapped in parens, so it isn't a call\\): (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@glimmer/compiler/lib/builder/builder-interface.ts","lineNumber":716,"sourceCode":"      case BUILDER_HAS_BLOCK_PARAMS:\n        return {\n          expr: {\n            type: HAS_BLOCK_PARAMS_EXPR,\n            name: expression[1],\n          },\n          kind: APPEND_EXPR_HEAD,\n          trusted: forceTrusted,\n        };\n\n      default: {\n        if (isBuilderCallExpression(expression)) {\n          return {\n            expr: normalizeCallExpression(expression),\n            kind: APPEND_EXPR_HEAD,\n            trusted: forceTrusted,\n          };\n        } else {\n          throw new Error(\n            `Unexpected array in expression position (wasn't a tuple expression and ${\n              expression[0] as string\n            } isn't wrapped in parens, so it isn't a call): ${JSON.stringify(expression)}`\n          );\n        }\n      }\n      // BuilderCallExpression\n    }\n  } else if (typeof expression !== 'object') {\n    switch (typeof expression) {\n      case 'string': {\n        return normalizeAppendHead(normalizeDottedPath(expression), forceTrusted);\n      }\n      case 'boolean':\n      case 'number':\n        return {\n          expr: { type: LITERAL_EXPR, value: expression },\n          kind: APPEND_EXPR_HEAD,","sourceCodeStart":698,"sourceCodeEnd":734,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@glimmer/compiler/lib/builder/builder-interface.ts#L698-L734","documentation":"Error \"Unexpected array in expression position (wasn't a tuple expression and ${expression[0] as string} isn't wrapped in parens, so it isn't a call): ${JSON.stringify(expression)}\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@glimmer/compiler/lib/builder/builder-interface.ts:716 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26f97246a8bf2e28edf26ac3093da2e86c04ffc5","analyzedAt":"2026-09-01T05:01:28.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}