[Webkit-unassigned] [Bug 223533] Variable incorrectly hoisted when it has the same name as a parameter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 10 19:15:30 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=223533

--- Comment #7 from Ross Kirsling <ross.kirsling at sony.com> ---
Test cases below.

# Control cases:

function test0(foo) { print(foo); var foo = 42; } test0('blah');
const test0a = (foo) => { print(foo); var foo = 42; }; test0a('blah');

# Bugged cases:

async function test1(foo) { print(foo); var foo = 42; } test1('blah');
const test1a = async (foo) => { print(foo); var foo = 42; }; test1a('blah');

function* test2(foo) { print(foo); var foo = 42; } test2('blah').next();
async function* test3(foo) { print(foo); var foo = 42; } test3('blah').next();

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230111/55faa57c/attachment-0001.htm>


More information about the webkit-unassigned mailing list