auto-bind.js 257 B

123456789101112
  1. 'use strict';
  2. var d = require('../');
  3. module.exports = function (t, a) {
  4. var o = Object.defineProperties({}, t({
  5. bar: d(function () { return this === o; }),
  6. bar2: d(function () { return this; })
  7. }));
  8. a.deep([(o.bar)(), (o.bar2)()], [true, o]);
  9. };