Bug 195443
Summary: | Wrong Realization of Reflect.ownKeys | ||
---|---|---|---|
Product: | WebKit | Reporter: | sunlili |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ashvayka, fpizlo, keith_miller, mark.lam, webkit-bug-importer, ysuzuki |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
sunlili
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
<rdar://problem/48700630>
Alexey Shvayka
*** This bug has been marked as a duplicate of bug 185211 ***