https://codereview.chromium.org/220473014/diff/1/src/runtime.cc
File src/runtime.cc (left):
https://codereview.chromium.org/220473014/diff/1/src/runtime.cc#oldcode2205
src/runtime.cc:2205: return ThrowRedeclarationError(isolate, "function",
name);
On 2014/04/02 12:29:57, marja wrote:
Why don't we differentiate between "function", "const" and "var"
redeclaration
any more?
Because it wasn't very meaningful. When you had
const x = 0
// ...
function x() {}
it would claim that "function x is already defined", which I find rather
misleading.
https://codereview.chromium.org/220473014/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.