From 64d0d03829e20e9a8221c3963f71429213201740 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Tue, 22 Oct 2024 14:33:09 -0700 Subject: [PATCH] fix: ensure filename is defined for builtins in debug builds --- runtime/script_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/script_loader.cpp b/runtime/script_loader.cpp index 973d380..314467e 100644 --- a/runtime/script_loader.cpp +++ b/runtime/script_loader.cpp @@ -203,6 +203,7 @@ static JSObject* get_builtin_module(JSContext* cx, HandleValue id, HandleObject } JS::CompileOptions opts(cx, *COMPILE_OPTS); + opts.setFile(""); JS::SourceText source; std::string code = "const { ";