fix(playground): no undefined parsers (#4159)

master
Ika 2018-03-16 22:37:08 +08:00 committed by Lucas Duailibe
parent 328d91f030
commit 23cd5d44f7
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,8 @@
/* eslint-env worker */
/* eslint no-var: off, strict: off */
var parsersLoaded = {};
// "Polyfills" in order for all the code to run
/* eslint-disable */
self.global = self;
@ -67,8 +69,6 @@ if (typeof prettier === "undefined") {
prettier = index; // eslint-disable-line
}
var parsersLoaded = {};
self.onmessage = function(message) {
var options = message.data.options || {};
options.parser = options.parser || "babylon";