blob: 72e04dd3631bdf3271e661d0a19f3c484e4cfe7f [file]
// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function makeBlockVariableInnerClosure(paramCaptured) {
function inner(c) {
let d = 2;
{
let blockScoped = 3;
d = paramCaptured + blockScoped + c + d;
}
return d;
}
return inner;
}
globalThis.blockVariableInnerClosure = makeBlockVariableInnerClosure(10);