From 88b473bf8bbddc67c4d588fdaee5659c02abcc0e Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 18 Mar 2025 16:25:45 -0700 Subject: [PATCH] WIPWIPWIP --- build.zig | 2 +- src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 025cd6abe8..8b6c2a53a9 100644 --- a/build.zig +++ b/build.zig @@ -274,7 +274,7 @@ pub fn build(b: *Build) !void { .tracy_callstack_depth = b.option(u16, "tracy_callstack_depth", "") orelse 10, .enable_logs = b.option(bool, "enable_logs", "Enable logs in release") orelse false, - .enable_asan = b.option(bool, "enable_asan", "Enable asan") orelse false, + .enable_asan = true, }; // zig build obj diff --git a/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp b/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp index bce4284520..3d50646eb7 100644 --- a/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp +++ b/src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp @@ -203,7 +203,7 @@ extern "C" EncodedJSValue Bun__analyzeTranspiledModule(JSGlobalObject* globalObj RELEASE_AND_RETURN(scope, JSValue::encode(rejectWithError(createError(globalObject, WTF::String::fromLatin1("parseFromSourceCode failed"))))); } -#if BUN_DEBUG +#if true RELEASE_AND_RETURN(scope, fallbackParse(globalObject, moduleKey, sourceCode, promise, moduleRecord)); #else promise->fulfillWithNonPromise(globalObject, moduleRecord); @@ -241,14 +241,14 @@ static EncodedJSValue fallbackParse(JSGlobalObject* globalObject, const Identifi if (resultValue != nullptr) { auto actual = dumpRecordInfo(resultValue); auto expected = dumpRecordInfo(moduleRecord); - if (actual != expected) { + if (actual != expected or true) { dataLog("\n\n\n\n\n\n\x1b[95mBEGIN analyzeTranspiledModule\x1b(B\x1b[m\n --- module key ---\n", moduleKey.utf8().data(), "\n --- code ---\n\n", sourceCode.toUTF8().data(), "\n"); dataLog(" ------", "\n"); dataLog(" BunAnalyzeTranspiledModule:", "\n"); zig__renderDiff(expected.utf8().data(), expected.utf8().length(), actual.utf8().data(), actual.utf8().length(), globalObject); - RELEASE_AND_RETURN(scope, JSValue::encode(rejectWithError(createError(globalObject, WTF::String::fromLatin1("Imports different between parseFromSourceCode and fallbackParse"))))); + if (actual != expected) RELEASE_AND_RETURN(scope, JSValue::encode(rejectWithError(createError(globalObject, WTF::String::fromLatin1("Imports different between parseFromSourceCode and fallbackParse"))))); } }