We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c964cd5 commit f529e8bCopy full SHA for f529e8b
2 files changed
rust/deps/merve.cpp
@@ -312,8 +312,8 @@ struct StarExportBinding {
312
std::string_view id;
313
};
314
315
-// Global state for error tracking
316
-std::optional<lexer_error> last_error;
+// Thread-local state for error tracking (safe for concurrent parse calls).
+thread_local std::optional<lexer_error> last_error;
317
318
// Lexer state class
319
class CJSLexer {
src/parser.cpp
@@ -310,8 +310,8 @@ struct StarExportBinding {
310
311
0 commit comments