cucumber/cucumber-js — comment on commit 1e29b6a0952aa08d09470d4cd21714fca1c8f6d0
File: README.md line 167
By olivoil:

Maybe that could be done by extending a default world implementation instead of just overwriting it? So that it exposes a pending function, that would then throw a pending step exception. StepDefinition could expose a convenience method, like `this.setWorld( require('myWorld').World )` that users would call instead of just exposing the World property. Does it make sense?