]> gerrit.simantics Code Review - simantics/district.git/blob - auto-bind.js
89edfb88bbec535f82a7aef9cd9d1d897f0d5dff
[simantics/district.git] / auto-bind.js
1 'use strict';
2
3 var d = require('../');
4
5 module.exports = function (t, a) {
6         var o = Object.defineProperties({}, t({
7                 bar: d(function () { return this === o; }),
8                 bar2: d(function () { return this; })
9         }));
10
11         a.deep([(o.bar)(), (o.bar2)()], [true, o]);
12 };