Why was the arguments.callee.caller property deprecated in JavaScript?  It was added and then deprecated in JavaScript, but it was omitted altogether by ECMAScript.  Some browser (Mozilla, IE) have always supported it and don't have any plans o...
I'm seeing posts about a 'new' Object.create that makes enumeration configurable.  However, it relies on a Object.defineProperty method.  I can't find a cross browser implementation for this method.    Are we stuck writing for the o...
I've been looking for some information regarding the scrapped ECMAScript 4th Edition without much success, even on SO.  I know Mozilla's JavaScript 1.7 implemented many (all?) of the new features offered in 4th Edition and I thought I remembe...
Why does JSON only allow a string to be a key of a pair? Why not other types such as null, number, bool, object, array? Considering JSON is tightly related with JavaScript, could I conclude the reason from JavaScript specification (ECMA-262)? I'm...
I tried to search for a JavaScript reference, but there's none available. The best two suggested sources are MDN (Mozilla Developer Network) and W3Schools.  Why?...
According to the 6th Edition of JavaScript: The Definitive Guide (Flanagan, 2011):     ECMAScript v3  specifies that the replacement argument to replace() may be a function instead of a string.   I'm looking at some code written in 2005, where a...
I'm reading EcmaScript specification.  At 9.2.12, there are:  11.Let varNames be the VarDeclaredNames of code.  12.Let varDeclarations be the VarScopedDeclarations of code.   And at 13.1.5 and 13.1.6:  13.1.5 Static Semantics: VarDeclaredNames  S...
I have recently encountered a nasty issue in JS.  Let say we pass a map, an array of objects to a function f.  var o=[{a:0}]; function f(a){     for(var i in a){         if (a.hasOwnProperty(i)){             a[i]=null;         }     }     return a; }...
So ECMAScript 5 introduces some incompatibilities with ECMAScript 3.    Example:  Many articles have been written stating that this === null || this === undefined is possible in ES5 strict mode:  "use strict"; (function () {     alert(this);...
I'm looking at section 13 or the ECMAScript specification (v. 5).  An anonymous function expression is initialized as follows:     Return the result of creating a new Function object as specified in 13.2 with parameters specified by FormalParamet...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.