Skip to content

Instantly share code, notes, and snippets.

@Qantas94Heavy
Created July 2, 2017 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qantas94Heavy/cbc899ee7ee439c38fa71d75d73acd61 to your computer and use it in GitHub Desktop.
Save Qantas94Heavy/cbc899ee7ee439c38fa71d75d73acd61 to your computer and use it in GitHub Desktop.
Example of Babel issue #5656
var log = function log() {
var _console;
return (_console = console).log.apply(_console, arguments);
};
function test_opt() {
log.apply(undefined, arguments);
}
function test_deopt() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var fn = function fn() {
return log.apply(undefined, arguments);
};
fn.apply(undefined, args);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment