| Index: test/mjsunit/debug-compile-event.js
|
| diff --git a/test/mjsunit/debug-compile-event.js b/test/mjsunit/debug-compile-event.js
|
| index 477c01d7f867d71c8afc2544ef01e5d6fdd0ee83..c38cd8477a9fe4d53b110f419d7b099292a111ff 100644
|
| --- a/test/mjsunit/debug-compile-event.js
|
| +++ b/test/mjsunit/debug-compile-event.js
|
| @@ -85,9 +85,11 @@ function listener(event, exec_state, event_data, data) {
|
| assertTrue('context' in msg.body.script);
|
|
|
| // Check that we pick script name from //# sourceURL, iff present
|
| - assertEquals(current_source.indexOf('sourceURL') >= 0 ?
|
| - 'myscript.js' : undefined,
|
| - event_data.script().name());
|
| + if (event == Debug.DebugEvent.AfterCompile) {
|
| + assertEquals(current_source.indexOf('sourceURL') >= 0 ?
|
| + 'myscript.js' : undefined,
|
| + event_data.script().name());
|
| + }
|
| }
|
| } catch (e) {
|
| exception = e
|
|
|