Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SpiderMonkey: No strict warning for reassigning a const

5 views
Skip to first unread message

Will Moffat

unread,
Mar 6, 2007, 7:29:37 AM3/6/07
to
I'm using Gran Paradiso rv:1.9a2 with javascript.options.strict = true
and JavaScript Shell 1.4

const one=1;
const one=2; --> TypeError on line 1: redeclaration of const one
one=2; --> 2 *No warning*
one --> 1

According to Bug 103602 - "Not getting a JavaScript strict warning for
reassigning to a const" this was verified fixed on 1.8, 1.9 windows.
Shouldn't Gran Paradiso contain this fix?

Any ideas why I don't see a warning?
regards,
--Will

0 new messages