Top "Ecmascript-5" questions

ECMAScript is the name of the Ecma International Standard 262.

EcmaScript 5 browser implementation

So Safari and Chrome have started in their betas to implement some ES5 stuff. For instance Object.create is in …

javascript cross-browser ecma262 ecmascript-5
Disable "use the function form of use strict" but keep the "Missing 'use strict' statement" warning

I am using jslint to validate my code. I have "use strict" on all my pages. How can I disable …

javascript validation jslint ecmascript-5 strict
Object.defineProperty polyfill

I am currently writing a JavaScript API which is based on new features in ES5. It uses Object.defineProperty quite …

javascript ecmascript-5 es5-shim
What object javascript function is bound to (what is its "this")?

I know that inside the function it is this. var func = function { return this.f === arguments.callee; // => true, if …

javascript function functional-programming this ecmascript-5
EcmaScript-6 backward compatibility

I am curious to understand/figure-out if the ECMAScript-6 new-changes will work on the old browsers or not. Why I …

javascript ecmascript-6 backwards-compatibility ecmascript-5
Regex only capturing last instance of capture group in match

I have the following regular expression in two different languages that produces the same odd results (javaScript and Flash). What …

javascript regex actionscript-3 ecmascript-5 capturing-group
How can I define a default getter and setter using ECMAScript 5?

How can I specify a default getter for a prototype? With default getter I mean a function that is called …

javascript prototype getter ecmascript-5
Math.pow with negative numbers and non-integer powers

The ECMAScript specification for Math.pow has the following peculiar rule: If x < 0 and x is finite and y …

javascript floating-point ieee-754 ecmascript-5 ecma262
How to force google closure compiler to keep "use strict"; in the compiled js code?

If you're using the module pattern and have something like this: (function () { "use strict"; // this function is strict... }()); and compile …

javascript google-closure google-closure-compiler ecmascript-5
In ECMAScript5, what's the scope of "use strict"?

What scope does the strict mode pragma have in ECMAScript5? "use strict"; I'd like to do this (mainly because JSLint …

javascript scope ecma262 strict ecmascript-5