scoped-variables-expected.txt 924 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
Tests scoped variable in Runtime.evaluate
Evaluating 'let a = 42;'
{
    type : undefined
}
Evaluating 'a'
{
    description : 42
    type : number
    value : 42
}
Evaluating 'let a = 239;'
{
    exceptionDetails : {
        columnNumber : 0
        exception : {
            className : SyntaxError
            description : SyntaxError: Identifier 'a' has already been declared     at <anonymous>:1:1
            objectId : <objectId>
            subtype : error
            type : object
        }
        exceptionId : <exceptionId>
        lineNumber : 0
        scriptId : <scriptId>
        text : Uncaught
    }
    result : {
        className : SyntaxError
        description : SyntaxError: Identifier 'a' has already been declared     at <anonymous>:1:1
        objectId : <objectId>
        subtype : error
        type : object
    }
}
Evaluating 'a'
{
    description : 42
    type : number
    value : 42
}