compile-script-expected.txt 1.43 KB
Newer Older
1
Tests Runtime.compileScript
2 3
Compiling script: foo1.js
         persist: false
4 5 6 7 8
compilation result: 
{
    id : <messageId>
    result : {
        exceptionDetails : {
9
            columnNumber : 3
10 11 12 13 14 15 16 17 18 19 20
            exception : {
                className : SyntaxError
                description : SyntaxError: Unexpected end of input
                objectId : <objectId>
                subtype : error
                type : object
            }
            exceptionId : <exceptionId>
            lineNumber : 1
            scriptId : <scriptId>
            text : Uncaught
21 22 23 24 25 26 27
        }
    }
}
-----
Compiling script: foo2.js
         persist: true
Debugger.scriptParsed: foo2.js
28 29 30 31 32 33
compilation result: 
{
    id : <messageId>
    result : {
        scriptId : <scriptId>
    }
34 35 36 37
}
-----
Compiling script: foo3.js
         persist: false
38 39 40 41 42
compilation result: 
{
    id : <messageId>
    result : {
    }
43 44 45 46
}
-----
Compiling script: foo4.js
         persist: false
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
compilation result: 
{
    id : <messageId>
    result : {
        exceptionDetails : {
            columnNumber : 13
            exception : {
                className : SyntaxError
                description : SyntaxError: Unexpected identifier
                objectId : <objectId>
                subtype : error
                type : object
            }
            exceptionId : <exceptionId>
            lineNumber : 0
            scriptId : <scriptId>
            text : Uncaught
64 65 66
        }
    }
}
67
-----