From: Kevin Carhart <kevin@carhart.net>
To: Edbrowse-dev@lists.the-brannons.com
Cc: kevin@carhart.net
Subject: [edbrowse-dev] [PATCH] Reflect.get
Date: Fri, 28 Aug 2020 23:23:10 -0700 [thread overview]
Message-ID: <20200728232310.kevin@carhart.net > (raw)
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
reply other threads:[~2020-08-29 6:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20200728232310.kevin@carhart.net ' \
--to=kevin@carhart.net \
--cc=Edbrowse-dev@lists.the-brannons.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).