Skip to content
  • mark.lam@apple.com's avatar
    Added ExpressionRangeInfo for BinaryOpNodes that can throw exceptions · 0e3a6ace
    mark.lam@apple.com authored
    due to type coersion.
    https://bugs.webkit.org/show_bug.cgi?id=116853.
    
    Reviewed by Geoffrey Garen.
    
    Source/JavaScriptCore: 
    
    * bytecompiler/NodesCodegen.cpp:
    (JSC::BinaryOpNode::emitBytecode):
    - Added expression info for the strcat and the general binary op cases.
      I did not add expression info for the "compare with null" case because
      that comparison cannot trigger type coersion, and hence it won't throw
      any exceptions and doesn't need the expression info.
    
    LayoutTests: 
    
    Added the test case from bugzilla which exercises the general binary op
    type coersion case, plus another for exercising the strcat case.
    
    * fast/js/line-column-numbers-expected.txt:
    * fast/js/line-column-numbers.html:
    * fast/js/script-tests/line-column-numbers.js:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0e3a6ace