summaryrefslogtreecommitdiff
path: root/packages/idb-bridge/src/util/structuredClone.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-01 23:27:42 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-01 23:27:42 +0200
commit255e2b0fe67dec33eb100715ee19f8efb80f6ed2 (patch)
tree64df784406815ca686cbf240d9df8f7952a62efc /packages/idb-bridge/src/util/structuredClone.ts
parent5f62d83a4ddab49a20ed29221c204dff5fe52b6d (diff)
downloadwallet-core-255e2b0fe67dec33eb100715ee19f8efb80f6ed2.tar.gz
wallet-core-255e2b0fe67dec33eb100715ee19f8efb80f6ed2.tar.bz2
wallet-core-255e2b0fe67dec33eb100715ee19f8efb80f6ed2.zip
copyright headers
Diffstat (limited to 'packages/idb-bridge/src/util/structuredClone.ts')
-rw-r--r--packages/idb-bridge/src/util/structuredClone.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/idb-bridge/src/util/structuredClone.ts b/packages/idb-bridge/src/util/structuredClone.ts
index 8b6b61315..165ed2f32 100644
--- a/packages/idb-bridge/src/util/structuredClone.ts
+++ b/packages/idb-bridge/src/util/structuredClone.ts
@@ -1,3 +1,19 @@
+/*
+ Copyright 2019 Florian Dold
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ or implied. See the License for the specific language governing
+ permissions and limitations under the License.
+*/
+
function structuredCloneImpl(val: any, visited: WeakMap<any, boolean>): any {
// FIXME: replace with real implementation!