User:Krinkle/foo.js

function foo { return FooUndef; }

function bar { foo; }

mw.libs.bar = bar;

bar;