[gjs/gnome-3-36] global: Enable BigInt



commit 3cfa17fe0a69d20e6c8adeae2bac57f8f5482495
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Mar 11 22:52:59 2020 -0700

    global: Enable BigInt
    
    Oops, I made a big announcement about this in the release notes and it
    didn't actually work! I thought I had tested it, but maybe I only did so
    in the js68 demo interpreter.
    
    (Unreviewed, pushing because ... well, I left it until the last minute)

 gjs/global.cpp | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gjs/global.cpp b/gjs/global.cpp
index 2ebeeab2..6b1a7875 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -247,6 +247,7 @@ class GjsGlobal {
     create(JSContext *cx)
     {
         JS::RealmOptions options;
+        options.creationOptions().setBigIntEnabled(true);
         JS::RootedObject global(
             cx, JS_NewGlobalObject(cx, &GjsGlobal::klass, nullptr,
                                    JS::FireOnNewGlobalHook, options));


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