summaryrefslogtreecommitdiff
path: root/common/modules/io.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/io.jsm')
-rw-r--r--common/modules/io.jsm4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/modules/io.jsm b/common/modules/io.jsm
index 6b062500..418a22d5 100644
--- a/common/modules/io.jsm
+++ b/common/modules/io.jsm
@@ -306,7 +306,7 @@ var IO = Module("io", {
*/
sourcing: null,
- expandPath: deprecated("File.expandPath", function expandPath() File.expandPath.apply(File, arguments)),
+ expandPath: deprecated("File.expandPath", function expandPath() apply(File, "expandPath", arguments)),
/**
* Returns the first user RC file found in *dir*.
@@ -523,7 +523,7 @@ var IO = Module("io", {
stdin.write(input);
function result(status, output) ({
- __noSuchMethod__: function (meth, args) this.output[meth].apply(this.output, args),
+ __noSuchMethod__: function (meth, args) apply(this.output, meth, args),
valueOf: function () this.output,
output: output.replace(/^(.*)\n$/, "$1"),
returnValue: status,