[gjs/mozjs78: 16/23] global: Update realm creation options. - setToSourceEnabled is needed to maintain access to 'uneval'
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 16/23] global: Update realm creation options. - setToSourceEnabled is needed to maintain access to 'uneval'
- Date: Sun, 5 Jul 2020 03:40:50 +0000 (UTC)
commit eb6e3455aeaa879c73f02856dd3a522eeff49594
Author: Evan Welsh <noreply evanwelsh com>
Date: Sat Jul 4 22:24:44 2020 -0500
global: Update realm creation options.
- setToSourceEnabled is needed to maintain access to 'uneval'.
- setFieldsEnabled is now default
- setBigIntEnabled is now default
gjs/global.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gjs/global.cpp b/gjs/global.cpp
index dd2ad2a9..f0c58b49 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -251,8 +251,9 @@ class GjsGlobal {
JS::RealmBehaviors behaviors;
JS::RealmCreationOptions creation;
- creation.setFieldsEnabled(true);
- creation.setBigIntEnabled(true);
+
+ // Enable uneval for debugger global
+ creation.setToSourceEnabled(true);
JS::RealmOptions options(creation, behaviors);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]