[Webkit-unassigned] [Bug 196678] New: JavaScriptCore stop execute javascript on missing pair bracket
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Apr 6 06:49:03 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=196678
Bug ID: 196678
Summary: JavaScriptCore stop execute javascript on missing pair
bracket
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: coldnew.tw at gmail.com
Created attachment 366886
--> https://bugs.webkit.org/attachment.cgi?id=366886&action=review
TestCase, firefox and Chrome will show green rectangle, webkit keep it red
When javascript missing pair bracket, like following:
var oldRectangle = $('[id^="rectangle"').parent();
Webkit will stop execute other javascript and throw following error:
[Error] Error: Syntax error, unrecognized expression: [id^="rectangle"
error (jquery-1.12.4.min.js:2:12788)
tokenize (jquery-1.12.4.min.js:2:18792)
select (jquery-1.12.4.min.js:2:21596)
fa (jquery-1.12.4.min.js:2:7322)
find (jquery-1.12.4.min.js:2:24114)
init (jquery-1.12.4.min.js:2:24681)
n (jquery-1.12.4.min.js:2:420)
Global Code (index.html:25)
If I fixed the javascript syntax to:
var oldRectangle = $('[id^="rectangle"]').parent();
All error gone.
This is due to WRONG syntax on javascript, but Firefox and Chrome they will fix the javascript syntax and will not throw any error.
The attatchement can test this problem, on Firefox/Chrome the result rectangle is in Green, but use webkit to render it, the color will be Red.
--
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/20190406/9f10a399/attachment.html>
More information about the webkit-unassigned
mailing list