Index: test/inspector/debugger/script-on-after-compile.js |
diff --git a/test/inspector/debugger/script-on-after-compile.js b/test/inspector/debugger/script-on-after-compile.js |
index 15631c54b475b567db4e8b893c5a7d9177512912..6a5a55b5ffd097e8865fbacdd2f03e75cecb171e 100644 |
--- a/test/inspector/debugger/script-on-after-compile.js |
+++ b/test/inspector/debugger/script-on-after-compile.js |
@@ -65,29 +65,9 @@ function requestSourceAndDump(scriptParsedMessage, scriptParsed) { |
} |
function dumpScriptParsed(scriptParsedMessage, sourceMessage, scriptParsed) { |
- var params = scriptParsedMessage.params; |
- var re = /[A-Z0-9]{40,40}/; |
- if (!params.hash || !matchExact(re, params.hash)) |
- params.hash = "Invalid hash: " + params.hash; |
- else |
- params.hash = "<hash>"; |
- if (params.executionContextId <= 0) |
- params.executionContextId = "Invalid executionContextId: " + params.executionContextId; |
- else |
- params.executionContextId = "<executionContextId>"; |
- if (params.scriptId * 1 <= 0) |
- params.scriptId = "Invalid scriptId: " + params.scriptId; |
- else |
- params.scriptId = "<scriptId>"; |
- |
var sourceResult = sourceMessage.result; |
sourceResult.scriptSource = sourceResult.scriptSource.replace(/\n/g, "<nl>"); |
InspectorTest.log(scriptParsed ? "scriptParsed" : "scriptFailedToParse"); |
InspectorTest.logObject(sourceResult); |
- InspectorTest.logObject(params); |
-} |
- |
-function matchExact(re, str) { |
- var match = str.match(re); |
- return match !== null && str === match[0]; |
+ InspectorTest.logMessage(scriptParsedMessage.params); |
} |