330Re: [jslint] Re: var a = var b = foo();
- Dec 16, 2008I believe the var declaration is not legal as the right side of a statement; it would require 'var b' to return a value, which it does not. Try:
var a, b;
a = b = foo();
Sent from my BlackBerry device on the Rogers Wireless Network
From: "Douglas Crockford" <douglas@...>
Date: Tue, 16 Dec 2008 15:00:28
Subject: [jslint] Re: var a = var b = foo();
--- In firstname.lastname@example.org, "Daniel Cassidy" <mail@...> wrote:
> JSLint forbids the following form:
> var a = var b = foo(); // Expected an identifier and instead saw 'var'.
> Is this intentional?
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>