mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
14 lines
156 B
JavaScript
14 lines
156 B
JavaScript
function f(o) {
|
|
with (o) {
|
|
x = 42;
|
|
return function () {
|
|
x = 56;
|
|
};
|
|
}
|
|
}
|
|
|
|
var q = { x: 23 };
|
|
var h = f(q);
|
|
alert(q.x); // 42
|
|
h();
|
|
alert(q.x); // 56
|