* [edbrowse-dev] [PATCH] Reflect.get
@ 2020-08-29 6:23 Kevin Carhart
0 siblings, 0 replies; only message in thread
From: Kevin Carhart @ 2020-08-29 6:23 UTC (permalink / raw)
To: Edbrowse-dev; +Cc: kevin
From 2f92dbed4ba07e1b69b38e5f8dd21bbb411f7806 Mon Sep 17 00:00:00 2001
From: Kevin Carhart <kevin@carhart.net>
Date: Fri, 28 Aug 2020 23:13:04 -0700
Subject: [PATCH] Implement Reflect.get. Reflect is one of the new ES6
features.
---
src/startwindow.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/startwindow.js b/src/startwindow.js
index c27dd02..a05f25e 100644
--- a/src/startwindow.js
+++ b/src/startwindow.js
@@ -4446,6 +4446,12 @@ for(var i=0; i<this.items.length; ++i)
if(t) fn.call(t,this.keys[i], this.items[i]); else fn(this.keys[i], this.items[i]);
}
+mw0.Reflect = function() {};
+mw0.Reflect.prototype.get = function(target,propertyKey)
+{
+return target[propertyKey];
+}
+
mw0.padStart = function(l2, v) {
var l1 = this.length;
var s = new String(this);
@@ -4477,6 +4483,7 @@ requestAnimationFrame = mw0.requestAnimationFrame;
cancelAnimationFrame = eb$voidfunction;
Set = mw0.Set;
Map = mw0.Map;
+Reflect = mw0.Reflect;
String.prototype.padStart = mw0.padStart;
String.prototype.padEnd = mw0.padEnd;
--
1.8.3.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-29 6:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 6:23 [edbrowse-dev] [PATCH] Reflect.get Kevin Carhart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).