blob: be5d920b6514f86ccf2808aa6824001917ce3949 [file] [log] [blame]
// constructing a view of a function
// view information implicitly provided by fulfillment
var Q = require("q");
Q.ref(function () {
return "called";
})
.view()
.then(function (view) {
return Q(view())
.when(console.log);
})
.end()