Archive for April 2010

 
 

ECMA-262-5 in detail. Chapter 1. Properties and Property Descriptors.

Introduction

This chapter is devoted generally to one of new concepts of the ECMA-262-5 specification — to property attributes and mechanism of their handling — property descriptors.

Usually saying that “an object has some property” we mean an association between a property name and its value. But as we know from the ES3 analysis, a property structure is more complex than just a string name. It also has set of attributes — those we already discussed in ES3, e.g. {ReadOnly}, {DontEnum} and other. So from this viewpoint a property is as an object itself.
Read more »

ECMA-262-5 in detail. Chapter 0. Introduction.

We have finished analysis of the most important parts and theoretical aspects concerning 3rd edition of the ECMA-262 specification, i.e. standard devoted ECMAScript programming language. We have done and achieved a lot. Originally written in Russian, this series after more than half an year has been translated to several languages, what allowed this information to be shared with JavaScript colleagues and with everyone who interested in deep ECMAScript allover the world.
Read more »

ECMA-262-3 in detail. Chapter 8. Evaluation strategy.

Read this article in: Russian.

Introduction

In this small note we will consider strategy of passing arguments to functions in ECMAScript.

Generally this section of a computer science is called evaluation strategy, i.e. set of rules for evaluation and calculation some expressions in programming language. Strategy of passing arguments to function is its special case.
Read more »

ECMA-262-3 in detail. Chapter 5. Functions.

Read this article in: Russian, Chinese.

Introduction

In this article we will more in detail talk about one of general ECMAScript objects — about functions. In particular, we will consider various types of functions, will define how this or that type influences variables object of a context and what contains a scope chain of a certain type of function.
Read more »