Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-return-by-value.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-return-by-value.js b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-return-by-value.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9bd8afda06a99464bc30e01bd5ef90e24977c791 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-return-by-value.js |
@@ -0,0 +1,12 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startBlank(`Tests that Runtime.evaluate returns an error for non serialable types.`); |
+ testRunner.runTestSuite([ |
+ async function testSymbol() { |
+ testRunner.logMessage(await dp.Runtime.evaluate({ expression: 'Symbol(239)', returnByValue: true })); |
+ }, |
+ |
+ async function testObjectWithChain() { |
+ testRunner.logMessage(await dp.Runtime.evaluate({ expression: 'a = {}; a.b = a; a', returnByValue: true })); |
+ } |
+ ]); |
+}) |