>From 2f92dbed4ba07e1b69b38e5f8dd21bbb411f7806 Mon Sep 17 00:00:00 2001
From: Kevin Carhart <[email protected]>
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