[gjs: 1/3] context: Remove lazy flag from evaluated sources



commit 6772f78c6abe1c6a947c51b0a8ac1d305567cc7e
Author: Philip Chimento <philip chimento gmail com>
Date:   Mon Apr 1 22:11:47 2019 -0700

    context: Remove lazy flag from evaluated sources
    
    This escaped notice when we removed the lazy flag from all other sources
    in commit b032fda4a4c33b07ff9f9f25c1bbc93adc5be316.

 gjs/context.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 54c83623..c0020328 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -965,7 +965,7 @@ bool GjsContextPrivate::eval_with_scope(JS::HandleObject scope_object,
         eval_obj = JS_NewPlainObject(m_cx);
 
     JS::CompileOptions options(m_cx);
-    options.setFileAndLine(filename, start_line_number).setSourceIsLazy(true);
+    options.setFileAndLine(filename, start_line_number);
 
 #if defined(G_OS_WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1900))
     std::wstring wscript = gjs_win32_vc140_utf8_to_utf16(script);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]