Created
July 12, 2013 15:55
-
-
Save lisp-ceo/5985512 to your computer and use it in GitHub Desktop.
#Node.js IRC user asserted V8 evaluates the arguments global differently based on whether a function has default arguments specifed
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
function YoloSwaggins(){ | |
console.log(arguments); | |
}; | |
function BilboBaggins ( args ) { | |
console.log(arguments); | |
} | |
new YoloSwaggins('multiple','arguments','provided'); | |
new BilboBaggins('multiple','arguments','provided'); | |
YoloSwaggins('multiple','arguments','provided'); | |
BilboBaggins('multiple','arguments','provided'); | |
new YoloSwaggins(); | |
new BilboBaggins(); | |
YoloSwaggins(); | |
BilboBaggins(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment