Bug 220506 - An issue about grammar checking
Summary: An issue about grammar checking
Status: RESOLVED DUPLICATE of bug 215969
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-11 05:03 PST by NWU_NISL
Modified: 2021-01-20 15:48 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NWU_NISL 2021-01-11 05:03:17 PST
#version: dbae081(https://github.com/WebKit/WebKit-http/commit/dbae081ad7e22d9ab61edf2f337f6c2bb593c7f8)

#Testcase:
for ([a,b] = [1,2] of [[3,4]]) {};
print(a);
print(b);

#Command:
./webkit/WebKitBuild/Release/bin/jsc testcase.js

#Output:
3
4

#Expected output:
SyntaxError: invalid for in/of left hand-side

#Description:
When executing this test case, other engines throw errors (such as v8, SpiderMonkey, chakra, etc.), but JSC executes normally and outputs 3 and 4. So I suspect this is a bug in javaScriptCore.
Comment 1 Radar WebKit Bug Importer 2021-01-18 05:04:12 PST
<rdar://problem/73320164>
Comment 2 Mark Lam 2021-01-20 15:48:05 PST

*** This bug has been marked as a duplicate of bug 215969 ***