From d649b2555b09c4fae3f1fa2d469b67923848ae0d Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Wed, 17 Jan 2018 11:31:44 -0500 Subject: [PATCH] Require TextEncoder correctly --- package.json | 1 + src/virtual-machine.js | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 02caa814e..e1a5af558 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "socket.io-client": "2.0.4", "stats.js": "^0.17.0", "tap": "^10.2.0", + "text-encoding": "0.6.4", "tiny-worker": "^2.1.1", "webpack": "^3.10.0", "webpack-dev-server": "^2.4.1", diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 61b61e518..cab409085 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -1,3 +1,4 @@ +const TextEncoder = require('text-encoding').TextEncoder; const EventEmitter = require('events'); const centralDispatch = require('./dispatch/central-dispatch');