[Webkit-unassigned] [Bug 188874] New: Function object should convert params to string before throw a parsing error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 22 17:49:37 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188874
Bug ID: 188874
Summary: Function object should convert params to string before
throw a parsing error
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: macOS 10.13
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: srsj2 at cin.ufpe.br
Hi everyone,
I found out an inconsistency in JSC when we declare a Function Object with a special characters as params.
Version: 235121
O.S: MacOS High Sierra Version 10.13.6
step to reproduce:
assertThrowsValue(() => Function("@", { toString() { throw 42; } }), 42);
atual result:
SyntaxError: Invalid character: '@'
expected result:
pass without failures
V8, Chakra and SpiderMonkey works 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/20180823/8a3b9c82/attachment.html>
More information about the webkit-unassigned
mailing list