From ed5632dab5883c86edff997a514da013ccd41e63 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Wed, 12 Feb 2025 15:05:28 +0300 Subject: [PATCH] Don't check line --- quickjs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickjs.c b/quickjs.c index 386b7bb93..d45655715 100644 --- a/quickjs.c +++ b/quickjs.c @@ -33397,8 +33397,7 @@ JSValue JS_EvalThis2(JSContext *ctx, JSValue this_obj, return JS_ThrowInternalError(ctx, "bad JSEvalOptions version"); if (options->filename) filename = options->filename; - if (options->line_num != 0) - line = options->line_num; + line = options->line_num; eval_flags = options->eval_flags; } JSValue ret;