summaryrefslogtreecommitdiff
path: root/dev/translator-vm.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-06-26 17:05:59 -0400
committerGitHub <noreply@github.com>2021-06-26 17:05:59 -0400
commit73caeac0fba13f83a810eab27dbc0aa49b3e9ef3 (patch)
tree1e82f97d87c3807397a8ffb82e4dcb14178465ca /dev/translator-vm.js
parentf9167c8fddbb757d314e1545c9dc788415a1fbf7 (diff)
Test updates (#1763)
* Allow passing of globals to custom VMs * Add _serializeError * Expose document to VM
Diffstat (limited to 'dev/translator-vm.js')
-rw-r--r--dev/translator-vm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/translator-vm.js b/dev/translator-vm.js
index f68b25db..7eab47b8 100644
--- a/dev/translator-vm.js
+++ b/dev/translator-vm.js
@@ -26,8 +26,8 @@ function clone(value) {
}
class TranslatorVM extends DatabaseVM {
- constructor() {
- super();
+ constructor(globals) {
+ super(globals);
this._japaneseUtil = null;
this._translator = null;
this._ankiNoteDataCreator = null;