%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
'use strict'; const common = require('../common'); common.skipIfInspectorDisabled(); // Test that if there is a side effect in a getter invoked through the vm // global proxy, Runtime.evaluate recognizes that. const assert = require('assert'); const inspector = require('inspector'); const vm = require('vm'); const session = new inspector.Session(); session.connect(); const context = vm.createContext({ get a() { global.foo = '1'; return 100; } }); session.post('Runtime.evaluate', { expression: 'a', throwOnSideEffect: true, contextId: 2 // context's id }, (error, res) => { assert.ifError(error); const { exception } = res.exceptionDetails; assert.strictEqual(exception.className, 'EvalError'); assert.match(exception.description, /Possible side-effect/); assert(context); // Keep 'context' alive and make linter happy. });