Bug 217308
| Summary: | A question about constructor | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | NWU_NISL <nisl_grammarly1> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ashvayka, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
NWU_NISL
#Version:
d940b47
#Testcase:
var f = function (){
var x = 42;
new x(x = function (){});
};
f();
#Command:
./webkit/WebKitBuild/Release/bin/jsc testcase.js
#Output:
#Expected output:
TypeError: x is not a constructor
#Description:
When executing the above testcase, other engines threw a TypeError exception, such as v8, spiderMonkey, etc. But JavaScriptCore passed normally without throwing any exceptions.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/69977289>
Yusuke Suzuki
*** This bug has been marked as a duplicate of bug 220429 ***
Yusuke Suzuki
Thanks, this is fixed in bug 220429!