summaryrefslogtreecommitdiff
path: root/school/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js
diff options
context:
space:
mode:
Diffstat (limited to 'school/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js')
-rw-r--r--school/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/school/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js b/school/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js
deleted file mode 100644
index dc5909c..0000000
--- a/school/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js
+++ /dev/null
@@ -1,9 +0,0 @@
-"use strict";
-
-// See https://github.com/jsdom/jsdom/pull/2743#issuecomment-562991955 for background.
-exports.copyToArrayBufferInNewRealm = (nodejsBuffer, newRealm) => {
- const newAB = new newRealm.ArrayBuffer(nodejsBuffer.byteLength);
- const view = new Uint8Array(newAB);
- view.set(nodejsBuffer);
- return newAB;
-};