Not-so-useful error message from dissrc with function not read from a file

NEW
Unassigned

Status

()

Core
JavaScript Engine
--
minor
12 years ago
4 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
PowerPC
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
js> function h() { }
js> dissrc(h)
typein:40: ReferenceError: can't open typein: No such file or directory

Why didn't DisassWithSrc output JSSMSG_FILE_SCRIPTS_ONLY -- "only works on JS scripts read from files"?
(Reporter)

Comment 1

10 years ago
It would be nice if it printed something like "(typein line 1)", omitting the actual source, instead of bailing completely.
Blocks: 622261
(Assignee)

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.