| Index: test/mjsunit/debug-stepin-function-call.js
|
| diff --git a/test/mjsunit/debug-stepin-function-call.js b/test/mjsunit/debug-stepin-function-call.js
|
| index 385fcb2f8bedc1a19d350df542e66d5756af20cd..3b5240c9337da878527f414d7edba7c0e9f3a779 100644
|
| --- a/test/mjsunit/debug-stepin-function-call.js
|
| +++ b/test/mjsunit/debug-stepin-function-call.js
|
| @@ -135,8 +135,15 @@ function apply4() {
|
| var yetAnotherLocal = 10;
|
| }
|
|
|
| +// Test step into bound function.
|
| +function bind1() {
|
| + var bound = g.bind(null, 3);
|
| + debugger;
|
| + bound();
|
| +}
|
| +
|
| var testFunctions =
|
| - [call1, call2, call3, call4, apply1, apply2, apply3, apply4];
|
| + [call1, call2, call3, call4, apply1, apply2, apply3, apply4, bind1];
|
|
|
| for (var i = 0; i < testFunctions.length; i++) {
|
| state = 0;
|
| @@ -145,5 +152,13 @@ for (var i = 0; i < testFunctions.length; i++) {
|
| assertEquals(3, state);
|
| }
|
|
|
| +// Test global bound function.
|
| +state = 0;
|
| +var globalBound = g.bind(null, 3);
|
| +debugger;
|
| +globalBound();
|
| +assertNull(exception);
|
| +assertEquals(3, state);
|
| +
|
| // Get rid of the debug event listener.
|
| Debug.setListener(null);
|
|
|