Skip to content

Commit

Permalink
Remove generator
Browse files Browse the repository at this point in the history
  • Loading branch information
neolao committed Dec 9, 2017
1 parent 2202b9f commit 389ca35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/ServiceContainer/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ var Container = class Container {
}

addCompilerPass(compiler) {
_assert2.default.strictEqual(_typeof(compiler.process), "function");
_assert2.default.strictEqual(compiler.process.constructor.name, "GeneratorFunction");
_assert2.default.strictEqual(_typeof(compiler.process), "function", "Compiler pass should contain process function");

this.compilers.add(compiler);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solfegejs-dependency-injection",
"description": "Dependency injection for SolfegeJS",
"version": "2.1.4",
"version": "2.1.5",
"author": "neolao <contact@neolao.com>",
"repository": "https://github.com/neolao/solfege-bundle-dependency-injection.git",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions src/ServiceContainer/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ export default class Container implements ContainerInterface
*/
addCompilerPass(compiler:CompilerPassInterface):void
{
assert.strictEqual(typeof compiler.process, "function");
assert.strictEqual(compiler.process.constructor.name, "GeneratorFunction");
assert.strictEqual(typeof compiler.process, "function", "Compiler pass should contain process function");

this.compilers.add(compiler);
}
Expand Down

0 comments on commit 389ca35

Please sign in to comment.