| Summary: | Updating an immutable binding does not throw a TypeError exception in a strict mode | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daejun Park <daejunpark> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | ggaren, oliver, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.9 | ||
|
Description
Daejun Park
2014-11-18 19:05:53 PST
For your information, this issue appears even if I wrapped the code as follows:
function x() {
"use strict";
var f = function g() {
g = 0;
};
f(); // TypeError
}
x();
Also, I reported this issue for v8:
https://code.google.com/p/v8/issues/detail?id=3704
but it turns out that it was duplicate:
https://code.google.com/p/v8/issues/detail?id=2243
and it will not be fixed because ES6 will consider this as a syntax error.
Do you have the same decision for this?
|