Re: Implicit object constructor misinterpretation



Thomas 'PointedEars' Lahn" wrote:
Richard Cornford wrote:

There is no need to propose any automatic insertion of quotes
into the source text (or token stream) in order to account for
the behaviour seen. And indeed such insertions would be
contrary to the behaviour observed. For example:-

var x = {
x-y:5
};

- is a syntax error but:-

var x = {
'x-y':5
};

- is not. The first being a mathematical expression in a context
that only allows for Identifiers, string literals and numeric
literals, while the second is a numeric literal.
^^^^^^^
Do you mean "string"?

Yes I did.

As for the rest, thank you for your patient explanations. One can
only hope something of it gets through to him.

Pigs may fly. ;-)

Richard.
.



Relevant Pages

  • Re: Implicit object constructor misinterpretation
    ... into the source text (or token stream) in order to account for ... And indeed such insertions would be ... While your wisdom is no doubt lost on VK, ...
    (comp.lang.javascript)
  • [NEWS] Serious Vulnerabilities Found in Rediffmail.com Web Mail Service (CSS)
    ... has been found to not properly filter out HTML and JavaScript ... var sessionid, login, ifs, ife, link, version; ... 'oldpassdb' contains the encoded/encrypted form of the ... a Rediff.com account with the following user ids: ...
    (Securiteam)
  • Can you make them table insertRow and insertBefore (element) work together?
    ... Here's the thing, I have this HTML Table, that has multile rows ... var tbl = document.getElementById; ... it works all right for a few TR insertions, and then, it begins to ...
    (comp.lang.javascript)
  • Re: mean and variance of image
    ... > hello i have to normalize the image .for this first i have to find ot ... meanhas been programmed to take into account different data classes. ... Notice, by the way, that var, like mean, only works in one direction at a time. ...
    (comp.soft-sys.matlab)
  • Re: mean and variance of image
    ... > hello i have to normalize the image .for this first i have to find ot ... meanhas been programmed to take into account different data classes. ... Notice, by the way, that var, like mean, only works in one direction at a time. ...
    (comp.soft-sys.matlab)