diff --git a/spec/api/plugin-api.spec.js b/spec/api/plugin-api.spec.js index 8646e38..f2856b8 100644 --- a/spec/api/plugin-api.spec.js +++ b/spec/api/plugin-api.spec.js @@ -120,9 +120,9 @@ describe("plugin API", function() { it("can change compiler passes", function() { let plugin = { use(config) { - let pass = ast => { + function pass(ast) { ast.code = "({ parse: function() { return 42; } })"; - }; + } config.passes.generate = [pass]; }