fix(playground): no undefined parsers (#4159)
parent
328d91f030
commit
23cd5d44f7
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue