| OLD | NEW |
| (Empty) | |
| 1 CONSOLE ERROR: Uncaught (in promise) #<Object> |
| 2 Tests that Runtime.callFunctionOn works with awaitPromise flag. |
| 3 |
| 4 Running test: testArguments |
| 5 { |
| 6 result : { |
| 7 type : string |
| 8 value : undefined|NaN|[object Object]|[object Window] |
| 9 } |
| 10 wasThrown : false |
| 11 } |
| 12 |
| 13 Running test: testSyntaxErrorInFunction |
| 14 { |
| 15 exceptionDetails : { |
| 16 columnNumber : 2 |
| 17 lineNumber : 1 |
| 18 scriptId : 0 |
| 19 text : Uncaught SyntaxError: Unexpected token } |
| 20 } |
| 21 result : { |
| 22 className : SyntaxError |
| 23 description : SyntaxError: Unexpected token } |
| 24 objectId : [ObjectId] |
| 25 subtype : error |
| 26 type : object |
| 27 } |
| 28 wasThrown : true |
| 29 } |
| 30 |
| 31 Running test: testExceptionInFunctionExpression |
| 32 { |
| 33 exceptionDetails : { |
| 34 columnNumber : 15 |
| 35 lineNumber : 0 |
| 36 scriptId : 0 |
| 37 text : Uncaught Error |
| 38 } |
| 39 result : { |
| 40 className : Error |
| 41 description : Error at <anonymous>:1:22 at <anonymous>:1:36 |
| 42 objectId : [ObjectId] |
| 43 subtype : error |
| 44 type : object |
| 45 } |
| 46 wasThrown : true |
| 47 } |
| 48 |
| 49 Running test: testFunctionReturnNotPromise |
| 50 { |
| 51 code : -32000 |
| 52 message : Result of the function call is not a promise. |
| 53 } |
| 54 |
| 55 Running test: testFunctionReturnResolvedPromiseReturnByValue |
| 56 { |
| 57 result : { |
| 58 type : object |
| 59 value : { |
| 60 a : 3 |
| 61 } |
| 62 } |
| 63 } |
| 64 |
| 65 Running test: testFunctionReturnResolvedPromiseWithPreview |
| 66 { |
| 67 result : { |
| 68 className : Object |
| 69 description : Object |
| 70 objectId : [ObjectId] |
| 71 preview : { |
| 72 description : Object |
| 73 overflow : false |
| 74 properties : [ |
| 75 [0] : { |
| 76 name : a |
| 77 type : number |
| 78 value : 3 |
| 79 } |
| 80 ] |
| 81 type : object |
| 82 } |
| 83 type : object |
| 84 } |
| 85 } |
| 86 |
| 87 Running test: testFunctionReturnRejectedPromise |
| 88 { |
| 89 exceptionDetails : { |
| 90 columnNumber : 0 |
| 91 lineNumber : 0 |
| 92 scriptId : |
| 93 stackTrace : { |
| 94 callFrames : [ |
| 95 ] |
| 96 } |
| 97 text : Promise was rejected |
| 98 } |
| 99 result : { |
| 100 type : object |
| 101 value : { |
| 102 a : 3 |
| 103 } |
| 104 } |
| 105 wasThrown : true |
| 106 } |
| 107 |
| OLD | NEW |