From a68dc4253aab74e06e5e00dcbb581f236aca7644 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Mon, 3 Apr 2023 16:40:34 +0300 Subject: [PATCH] GraphQLObjectType: partial revert of #3143, due to perf regression (#3874) --- src/type/definition.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/type/definition.ts b/src/type/definition.ts index 81488efb39..f466b77ee3 100644 --- a/src/type/definition.ts +++ b/src/type/definition.ts @@ -719,8 +719,10 @@ export class GraphQLObjectType { this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes ?? []; - this._fields = () => defineFieldMap(config); - this._interfaces = () => defineInterfaces(config); + // prettier-ignore + // FIXME: blocked by https://github.com/prettier/prettier/issues/14625 + this._fields = (defineFieldMap).bind(undefined, config); + this._interfaces = defineInterfaces.bind(undefined, config); } get [Symbol.toStringTag]() {