INFO: JScript Passes Variables by Value (269258)
The information in this article applies to:
- Microsoft JScript 1.0
- Microsoft JScript 2.0
- Microsoft JScript 3.0
- Microsoft JScript 4.0
- Microsoft JScript 5.0
- Microsoft JScript 5.5
This article was previously published under Q269258 SUMMARY
According to the ECMA-262 specification, Microsoft JScript passes all variables by value. Therefore, any changes that the callee makes to the variables are not reflected in the caller when it resumes execution.
REFERENCES
For more information on Microsoft JScript, see the Microsoft Scripting Web site:
For the complete ECMA-262 specification (on which Microsoft JScript is based), see the following ECMA site:
Specific sections of interest include:
Sections 10.1.8 (Arguments object)
8.7 (Reference data type)
15.2.4.4 (Object.prototype.valueOf)
15.3.4 (Function.prototype properties)
15.4.4 (Array.prototype properties)
15.5.4.2 (String.prototype.valueOf)
15.6.4.3 (Boolean.prototype.valueOf)
15.7.4.4 (Number.prototype.valueOf)
15.9.5.8 (Date.prototype.valueOf)
15.10.6 (RegExp.prototype properties) For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
| Modification Type: | Major | Last Reviewed: | 5/11/2006 |
|---|
| Keywords: | kbFAQ kbinfo KB269258 |
|---|
|