Skip to content

Instantly share code, notes, and snippets.

@lisp-ceo
Created July 12, 2013 15:55
Show Gist options
  • Save lisp-ceo/5985512 to your computer and use it in GitHub Desktop.
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
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