[Webkit-unassigned] [Bug 185156] JavaScriptCore should throw SyntaxError when a variable is already declared inside the "with" scope

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 8 08:57:46 PDT 2018


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

isol2 at cin.ufpe.br changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |isol2 at cin.ufpe.br

--- Comment #2 from isol2 at cin.ufpe.br ---
Hi Saam, sorry for delay... baac left from our project she did not answered your question in time.

We reported this issue on JSC and Chakra already confirmed after discussion (https://github.com/Microsoft/ChakraCore/issues/5076).

Another similar case can be found in this code:
{
let x;
eval('var x;');
}

JSC and Chakra should not hoist the var past the let declaration without throwing redeclaration. V8 and Spidermonkey throws a SyntaxError as expected.


cinfuzz

-- 
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/20180808/ab880105/attachment.html>


More information about the webkit-unassigned mailing list