| Index: test/mjsunit/debug-evaluate-locals-optimized.js
 | 
| diff --git a/test/mjsunit/debug-evaluate-locals-optimized.js b/test/mjsunit/debug-evaluate-locals-optimized.js
 | 
| index 485f752f5c5b5eadac0cea33b79dd3d5e307dfe1..062c9f4ec3087cb1f65cf2eed1c934af2a93339e 100644
 | 
| --- a/test/mjsunit/debug-evaluate-locals-optimized.js
 | 
| +++ b/test/mjsunit/debug-evaluate-locals-optimized.js
 | 
| @@ -25,7 +25,7 @@
 | 
|  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
|  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
|  
 | 
| -// Flags: --expose-debug-as debug --allow-natives-syntax
 | 
| +// Flags: --expose-debug-as debug --allow-natives-syntax --inline-construct
 | 
|  // Get the Debug object exposed from the debug context global object.
 | 
|  Debug = debug.Debug
 | 
|  
 | 
| @@ -130,7 +130,13 @@ function listener(event, exec_state, event_data, data) {
 | 
|          }
 | 
|  
 | 
|          // Check for construct call.
 | 
| -        assertEquals(testingConstructCall && i == 4, frame.isConstructCall());
 | 
| +        if (i == 4) {
 | 
| +          assertEquals(testingConstructCall, frame.isConstructCall());
 | 
| +        } else if (i == 2) {
 | 
| +          assertTrue(frame.isConstructCall());
 | 
| +        } else {
 | 
| +          assertFalse(frame.isConstructCall());
 | 
| +        }
 | 
|  
 | 
|          // When function f is optimized (1 means YES, see runtime.cc) we
 | 
|          // expect an optimized frame for f with g1, g2 and g3 inlined.
 | 
| @@ -185,7 +191,7 @@ function g2(i) {
 | 
|  function g1(i, x3, y3, z3) {
 | 
|    var a3 = expected[i].locals.a3;
 | 
|    var b3 = expected[i].locals.b3;
 | 
| -  g2(i - 1, a3, b3);
 | 
| +  new g2(i - 1, a3, b3);
 | 
|  }
 | 
|  
 | 
|  function f(i, x4, y4) {
 | 
| @@ -201,7 +207,7 @@ testingConstructCall = true;
 | 
|  new f(expected.length - 1, 11, 12);
 | 
|  new f(expected.length - 1, 11, 12, 0);
 | 
|  
 | 
| -// Make sure that the debug event listener vas invoked.
 | 
| +// Make sure that the debug event listener was invoked.
 | 
|  assertFalse(exception, "exception in listener " + exception)
 | 
|  assertTrue(listenerComplete);
 | 
|  
 | 
| 
 |