Renamed files
This commit is contained in:
committed by
Nicolò Ribaudo
parent
07e69c009b
commit
0f42accb87
7
packages/babel-plugin-proposal-function-bind/test/fixtures/function-bind/bind/output.js
vendored
Normal file
7
packages/babel-plugin-proposal-function-bind/test/fixtures/function-bind/bind/output.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var _context;
|
||||
|
||||
var f = (_context = ctx, ns.obj.func).bind(_context);
|
||||
|
||||
var g = (_context = ns.obj).func.bind(_context);
|
||||
|
||||
var h = (_context = new X(), y).bind(_context);
|
||||
7
packages/babel-plugin-proposal-function-bind/test/fixtures/function-bind/call/output.js
vendored
Normal file
7
packages/babel-plugin-proposal-function-bind/test/fixtures/function-bind/call/output.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var _context;
|
||||
|
||||
(_context = ctx, ns.obj.func).call(_context);
|
||||
|
||||
(_context = ns.obj).func.call(_context);
|
||||
|
||||
(_context = ns.obj2, ns.obj1.func).call(_context);
|
||||
10
packages/babel-plugin-proposal-function-bind/test/fixtures/function-bind/complex-call/output.js
vendored
Normal file
10
packages/babel-plugin-proposal-function-bind/test/fixtures/function-bind/complex-call/output.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
var _context;
|
||||
|
||||
import { map, takeWhile, forEach } from "iterlib";
|
||||
(_context = (_context = (_context = getPlayers(), map).call(_context, function (x) {
|
||||
return x.character();
|
||||
}), takeWhile).call(_context, function (x) {
|
||||
return x.strength > 100;
|
||||
}), forEach).call(_context, function (x) {
|
||||
return console.log(x);
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
var bar = function () {};
|
||||
|
||||
bar.bind(foo);
|
||||
var foo = {};
|
||||
foo.bar.bind(foo);
|
||||
Reference in New Issue
Block a user