Created
July 2, 2017 12:10
-
-
Save Qantas94Heavy/cbc899ee7ee439c38fa71d75d73acd61 to your computer and use it in GitHub Desktop.
Example of Babel issue #5656
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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