Changeset 28935 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Dec 21, 2007, 7:36:13 AM (17 years ago)
Author:
Darin Adler
Message:
  • fix broken regression tests

The broken tests were fast/js/do-while-expression-value.html and
fast/js/while-expression-value.html.

  • kjs/nodes.cpp: Check in the correct version of this file. I had accidentally landed an old version of my patch for bug 16471. (KJS::statementListExecute): The logic here was backwards. Have to set the value even for non-normal execution results.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.cpp

    r28929 r28935  
    35953595    for (size_t i = 0; i != size; ++i) {
    35963596        JSValue* statementValue = statements[i]->execute(exec);
    3597         if (exec->completionType() != Normal)
    3598             return statementValue;
    35993597        if (statementValue)
    36003598            value = statementValue;
     3599        if (exec->completionType() != Normal)
     3600            return value;
    36013601    }
    36023602    return exec->setNormalCompletion(value);
Note: See TracChangeset for help on using the changeset viewer.