Archive for the Category ECMAScript
Introduction
In this chapter we will concentrate on another innovation of the ECMA-262-5. The topic of the discussion is a strict variant (or strict mode) of an ECMAScript program. We’ll discuss the reasons for providing this feature, how it affects on some already existing semantic aspects and what can it restrict.
Read more »
June 1st, 2010 |
8 Comments |
812 views
Category: ECMAScript |
Tags: Direct eval call, ECMA-262-5, ECMAScript, Indirect eval call, Strict mode
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 »
April 28th, 2010 |
5 Comments |
1052 views
Category: ECMAScript |
Tags: Accessor property, Data property, ECMA-262-5, ECMAScript, Property, Property Descriptor, Property Identifier
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 »
April 27th, 2010 |
3 Comments |
445 views
Category: ECMAScript |
Tags: ECMA-262-5, ECMAScript
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 »
April 10th, 2010 |
3 Comments |
1057 views
Category: ECMAScript |
Tags: by reference, by sharing, by value, ECMA-262-3, ECMAScript, Evaluation strategy
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 »
April 5th, 2010 |
9 Comments |
1422 views
Category: ECMAScript |
Tags: ECMA-262-3, ECMAScript, Function Declaration, Function Expression, Function Statement
Read this article in: Russian, Chinese.
Introduction
As we already know from the second chapter concerning the variable object, the data of an execution context (variables, function declarations, and formal parameters of functions) are stored as properties of the variables object.
Read more »
March 21st, 2010 |
12 Comments |
1347 views
Category: ECMAScript |
Tags: ECMA-262-3, ECMAScript, Scope chain, [[Scope]]
Read this article in: Russian, Chinese (version1, version2).
Introduction
Always in programs we declare functions and variables which then successfully use building our systems. But how and where the interpreter finds our data (functions, variable)? What occurs, when we reference to needed objects?
Read more »
March 15th, 2010 |
21 Comments |
2009 views
Category: ECMAScript |
Tags: Activation object, ECMA-262-3, ECMAScript, Variable object
Read this article in: Russian, Chinese, Arabic.
Introduction
In this note we will mention execution contexts of ECMAScript and types of executable code related with them.
Read more »
March 11th, 2010 |
7 Comments |
4217 views
Category: ECMAScript |
Tags: ECMA-262-3, ECMAScript, execution context
Read this article in: Russian, Chinese (version1, version2).
Introduction
In this article we will discuss one more detail directly related with execution contexts. The topic of discussion is the this keyword.
Read more »
March 7th, 2010 |
21 Comments |
2009 views
Category: ECMAScript |
Tags: ECMA-262-3, ECMAScript, this
Read this article in: Russian.
Introduction
This is the second part of article about object-oriented programming in ECMAScript. In the first part we discussed the general theory and drew parallels with ECMAScript. Before reading of the current part, if it is necessary, I recommend reading the first part as in this article we will actively use the passed terminology. Interested persons can find the first part here: ECMA-262-3 in detail. Chapter 7.1. OOP: The general theory.
Read more »
March 4th, 2010 |
11 Comments |
2328 views
Category: ECMAScript |
Tags: ECMA-262-3, ECMAScript, Object-oriented programming, OOP, Prototype