Closed Bug 585001 Opened 14 years ago Closed 14 years ago

Add read() as a synonym for snarf() in the js shell

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: paul.biggar, Unassigned)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

In other JS shells (v8, jsc), the function to read a file into a string is called 'read'. We call it "snarf".

This adds a synonym called "read". This makes one of the fixes for bug 580532 simpler to send upstream to webkit.

There don't seem to be tests for the shell, so tested by hand.
Blocks: 580532
Attachment #463491 - Flags: review?(jim)
Attachment #463491 - Flags: review?(jim) → review+
This was accidentally committed as part of bug 578158, but it was decided to leave it in since it was approved anyway.
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: