[gjs/wip/ptomato/mozjs45prep: 37/38] WIP - eval scope issue
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs45prep: 37/38] WIP - eval scope issue
- Date: Tue, 4 Apr 2017 07:51:23 +0000 (UTC)
commit a66b56fd73a5179662bf95cc195d46a02470da15
Author: Philip Chimento <philip chimento gmail com>
Date: Tue Apr 4 00:47:02 2017 -0700
WIP - eval scope issue
Wat? I can't even. Why are constants not getting defined on the scope object
while everything else is.
installed-tests/js/modules/modunicode.js | 2 +-
modules/cairo.js | 26 +++++++++++++-------------
modules/gettext.js | 2 +-
modules/signals.js | 2 +-
4 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/installed-tests/js/modules/modunicode.js b/installed-tests/js/modules/modunicode.js
index cbda9b8..69ca1f0 100644
--- a/installed-tests/js/modules/modunicode.js
+++ b/installed-tests/js/modules/modunicode.js
@@ -1,3 +1,3 @@
// This file is written in UTF-8.
-const uval = "const ♥ utf8";
+this.uval = "const ♥ utf8";
diff --git a/modules/cairo.js b/modules/cairo.js
index 7555c3c..03529b5 100644
--- a/modules/cairo.js
+++ b/modules/cairo.js
@@ -20,32 +20,32 @@
const Lang = imports.lang;
-const Antialias = {
+this.Antialias = {
DEFAULT: 0,
NONE: 1,
GRAY: 2,
SUBPIXEL: 3
};
-const Content = {
+this.Content = {
COLOR : 0x1000,
ALPHA : 0x2000,
COLOR_ALPHA : 0x3000
};
-const Extend = {
+this.Extend = {
NONE : 0,
REPEAT : 1,
REFLECT : 2,
PAD : 3
};
-const FillRule = {
+this.FillRule = {
WINDING: 0,
EVEN_ODD: 1
};
-const Filter = {
+this.Filter = {
FAST : 0,
GOOD : 1,
BEST : 2,
@@ -54,18 +54,18 @@ const Filter = {
GAUSSIAN : 5
};
-const FontSlant = {
+this.FontSlant = {
NORMAL: 0,
ITALIC: 1,
OBLIQUE: 2
};
-const FontWeight = {
+this.FontWeight = {
NORMAL : 0,
BOLD : 1
};
-const Format = {
+this.Format = {
ARGB32 : 0,
RGB24 : 1,
A8 : 2,
@@ -74,19 +74,19 @@ const Format = {
RGB16_565: 5
};
-const LineCap = {
+this.LineCap = {
BUTT: 0,
ROUND: 1,
SQUASH: 2
};
-const LineJoin = {
+this.LineJoin = {
MITER: 0,
ROUND: 1,
BEVEL: 2
};
-const Operator = {
+this.Operator = {
CLEAR: 0,
SOURCE: 1,
OVER: 2,
@@ -118,14 +118,14 @@ const Operator = {
HSL_LUMINOSITY : 28
};
-const PatternType = {
+this.PatternType = {
SOLID : 0,
SURFACE : 1,
LINEAR : 2,
RADIAL : 3
};
-const SurfaceType = {
+this.SurfaceType = {
IMAGE : 0,
PDF : 1,
PS : 2,
diff --git a/modules/gettext.js b/modules/gettext.js
index 67c4504..aad6c6f 100644
--- a/modules/gettext.js
+++ b/modules/gettext.js
@@ -35,7 +35,7 @@
const GLib = imports.gi.GLib;
const GjsPrivate = imports.gi.GjsPrivate;
-const LocaleCategory = GjsPrivate.LocaleCategory;
+this.LocaleCategory = GjsPrivate.LocaleCategory;
function setlocale(category, locale) {
return GjsPrivate.setlocale(category, locale);
diff --git a/modules/signals.js b/modules/signals.js
index 8db97c2..2481c91 100644
--- a/modules/signals.js
+++ b/modules/signals.js
@@ -156,7 +156,7 @@ function addSignalMethods(proto) {
_addSignalMethod(proto, "disconnectAll", _disconnectAll);
}
-const WithSignals = new Lang.Interface({
+this.WithSignals = new Lang.Interface({
Name: 'WithSignals',
connect: _connect,
disconnect: _disconnect,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]