TIL: Mozilla’s draft on ES6

Draft ECMA-262, 6th Edition / Draft April 3, 2015 : 


Optimized Tail calls in ES6 in Strict Mode

Source Dr. Axel Rauschmayer‘s blog ②ality –
ECMAScript 6 will have tail call optimization: If a function call is the last action in a function, it is handled via a “jump”, not via a “subroutine call”. That means that, if you slightly rewrote computeMaxCallStackSize(), it would run forever under ECMAScript 6 (in strict mode):

    function computeMaxCallStackSize(size) {
        size = size || 1;
        return computeMaxCallStackSize(size + 1);

What is JavaScript’s highest integer value that a Number can go to without losing precision?

Answer: 9007199254740992
Source: stackoverflow.com


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s