Closed
Bug 496531
Opened 15 years ago
Closed 15 years ago
Error message changed from "is not a function" to "is not defined"
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: gkw, Unassigned)
Details
(Keywords: regression, testcase)
$ cat ~/Desktop/s2.js let print; delete print; print(1); This testcase outputs $ 21500/js-dbg-tm-intelmac ~/Desktop/s2.js /Users/skywalker/Desktop/s2.js:3: TypeError: print is not a function with changeset 21500 (Nov 2008 dbg js shell build without -j) http://hg.mozilla.org/tracemonkey/rev/04c360f123e5 but outputs $ 28939/js-dbg-tm-intelmac ~/Desktop/s2.js /Users/skywalker/Desktop/s2.js:3: ReferenceError: print is not defined with changeset 28939 (latest dbg js shell build without -j) http://hg.mozilla.org/tracemonkey/rev/6afc57314e74 Was the change from "is not a function" to "is not defined" intentional?
Reporter | ||
Comment 1•15 years ago
|
||
(In reply to comment #0) > Was the change from "is not a function" to "is not defined" intentional? [12:40] jorendorf> nth10sd: I think the semantics of global let changed intentionally. [12:40] jorendorf> nth10sd: That would explain it. -> invalid, not a bug.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•