[gjs/mozjs78: 14/21] 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: 14/21] global: Update realm creation options. - setToSourceEnabled is needed to maintain access to 'uneval'
- Date: Sun, 5 Jul 2020 03:36:20 +0000 (UTC)
commit a2cd33139adc2c6ae92ce7a329becc0504372efa
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]