Files
Kmake/deps/v8/test/inspector/runtime/call-function-on-side-effect-free-expected.txt
2026-05-26 23:36:42 -07:00

10 lines
418 B
Plaintext

Tests side-effect-free Runtime.callFunctionOn()
Running test: testCallFunctionOnSideEffectFree
function getA() { return this.a; }: ok
function setA(a) { this.a = a; }: throws
function getB() { return this.b; }: ok
function setB(b) { this.b = b; }: throws
function setSomeGlobal() { globalThis.someGlobal = this; }: throws
function localSideEffect() { const date = new Date(); date.setDate(this.a); return date; }: ok