1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 06:27:59 +01:00

Replace util.isOS with a platform queryable util.OS object.

--HG--
extra : rebase_source : 2a00dd4e3a023c9de11818bb95d86d9901341c6a
This commit is contained in:
Doug Kearns
2010-11-08 05:34:57 +11:00
parent 7787f0a2ce
commit a8b16ec635
6 changed files with 29 additions and 25 deletions

View File

@@ -1223,7 +1223,7 @@ const Buffer = Module("buffer", {
let arg = args[0];
// FIXME: arg handling is a bit of a mess, check for filename
dactyl.assert(!arg || arg[0] == ">" && !util.isOS("WINNT"),
dactyl.assert(!arg || arg[0] == ">" && !util.OS.isWindows,
"E488: Trailing characters");
prefs.withContext(function () {