PutValue() (Function/internal)

Internal private function.


ECMAScript edition - 2

This internal function stores a value in the property belonging to the reference item passed as its argument.

A run-time error is generated if the passed-in argument is not a reference item.

If the target object does exist, the usual Put() function logic is invoked to store the value in the object property.

If the target object does not exist, then the property is added to the global object and takes the value that is passed as a new value.

See also:Global object, Put(), Reference

Property attributes:



ECMA 262 edition 2 - section - 8.7.4

ECMA 262 edition 3 - section - 8.7.2