aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/List.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-20 19:06:28 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-20 19:06:28 -0400
commit8ddec1c70c01b3d7d919908299e1168b75698dc7 (patch)
tree653353473d8865d8b738dfcdc02f56dda77f9132 /src/new_fields/List.ts
parent1eb965a5d9c8aaebf1970bc645edecfb7017b601 (diff)
More refactoring
Diffstat (limited to 'src/new_fields/List.ts')
-rw-r--r--src/new_fields/List.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/List.ts b/src/new_fields/List.ts
index a1a623f83..58b252f7b 100644
--- a/src/new_fields/List.ts
+++ b/src/new_fields/List.ts
@@ -9,7 +9,7 @@ class ListImpl<T extends Field> extends ObjectField {
constructor() {
super();
const list = new Proxy<this>(this, {
- set: function (a, b, c, d) { return setter(a, b, c, d); },
+ set: setter,
get: getter,
deleteProperty: () => { throw new Error("Currently properties can't be deleted from documents, assign to undefined instead"); },
defineProperty: () => { throw new Error("Currently properties can't be defined on documents using Object.defineProperty"); },