haikuwebkit/LayoutTests/js/script-tests/dfg-activation-register-ove...

11 lines
210 B
JavaScript

description(
"This tests that the DFG does not attempt to overwrite the activation register with undefined."
);
function g() {
(eval("-7") = 0);
}
dfgShouldBe(g, "try { g() } catch (e) { }", "void 0");