From c6b059b2b37deb6a4bc0ead043cf880fb5ef8359 Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 13 Mar 2025 20:00:32 -0700 Subject: [PATCH] [for only-parse-twice] enable diffing in debug --- src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp b/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp index 8fb9b87de2..085a00e262 100644 --- a/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp +++ b/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp @@ -199,7 +199,7 @@ extern "C" EncodedJSValue Bun__analyzeTranspiledModule(JSGlobalObject* globalObj RELEASE_AND_RETURN(scope, JSValue::encode(rejectWithError(createError(globalObject, WTF::String::fromLatin1("parseFromSourceCode failed"))))); } -#ifdef DEBUG +#ifdef BUN_DEBUG RELEASE_AND_RETURN(scope, fallbackParse(globalObject, moduleKey, sourceCode, promise, moduleRecord)); #else promise->fulfillWithNonPromise(globalObject, moduleRecord);