Ignore:
Timestamp:
Mar 25, 2014, 1:06:07 PM (11 years ago)
Author:
[email protected]
Message:

AST incorrectly conflates readable and writable locations
https://bugs.webkit.org/show_bug.cgi?id=130734

Reviewed by Filip Pizlo.

Source/JavaScriptCore:

We need to distinguish between "locations" that are valid for reading
and writing, vs those that may only be written.

  • bytecompiler/NodesCodegen.cpp:

(JSC::ForInNode::emitBytecode):
(JSC::ForOfNode::emitBytecode):

  • parser/Nodes.h:

(JSC::ExpressionNode::isAssignmentLocation):

LayoutTests:

More tests

  • js/parser-syntax-check-expected.txt:
  • js/script-tests/parser-syntax-check.js:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r166240 r166243  
     12014-03-25  Oliver Hunt  <[email protected]>
     2
     3        AST incorrectly conflates readable and writable locations
     4        https://bugs.webkit.org/show_bug.cgi?id=130734
     5
     6        Reviewed by Filip Pizlo.
     7
     8        We need to distinguish between "locations" that are valid for reading
     9        and writing, vs those that may only be written.
     10
     11        * bytecompiler/NodesCodegen.cpp:
     12        (JSC::ForInNode::emitBytecode):
     13        (JSC::ForOfNode::emitBytecode):
     14        * parser/Nodes.h:
     15        (JSC::ExpressionNode::isAssignmentLocation):
     16
    1172014-03-24  Oliver Hunt  <[email protected]>
    218
Note: See TracChangeset for help on using the changeset viewer.