WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 185211
195443
Wrong Realization of Reflect.ownKeys
https://bugs.webkit.org/show_bug.cgi?id=195443
Summary
Wrong Realization of Reflect.ownKeys
sunlili
Reported
2019-03-07 17:20:16 PST
Hello, I run following code in lastest JavascriptCore, the result is wrong. TypeError should be thrown when returns duplicate entries. var proxy = new Proxy({}, { ownKeys: function(target) { print("in ownKeys"); return ['a','b','a']; }, }); print(Reflect.ownKeys(proxy)); print("BT_FLAG"); SpiderMonkey and V8 throw a TypeError: 'ownKeys' on proxy: trap returned duplicate entries, However, JavascriptCore execute without failures. BT group 2019.3.8
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-03-07 19:36:59 PST
<
rdar://problem/48700630
>
Alexey Shvayka
Comment 2
2020-05-04 16:38:48 PDT
*** This bug has been marked as a duplicate of
bug 185211
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug