Anna Henningsen
bd99179abc
Make sure input to path.{dir,base}name is a string
...
Since nodejs/node@08085c49b6 , which will be part of Node.js v6.0,
functions from the `path` core module (like `dirname`) will require
their input to be a string.
Currently, at some points in the code they might be called
with `undefined`; This patch adds `… || ""` so that the input
is always a string.
For `path.dirname` in the babel-core file, this does not change
behaviour, since
`path.dirname(undefined) === path.dirname("") === "."` (where the
first expression is only defined for Node.js ≤ v5.x).
For `path.basename`, this changes the return value, since
`path.basename(undefined) === "undefined"` (on Node.js ≤ v5.x), but
`path.basename("") === ""`. However, it seems reasonable to assume
that, due to the trailing expression in
`path.basename(…) || "stdout"`, the current behaviour is not actually
the intended one.
There are possibly more places in the code base where similar changes
may be neccessary; However, these suffice to make the tests pass
and un-break the build of at least one external project when using
the current Node.js master branch.
2016-03-28 15:31:38 +02:00
..
2016-02-12 11:29:58 -05:00
2016-03-28 15:31:38 +02:00
2016-03-23 19:06:45 +01:00
2016-03-28 15:31:38 +02:00
2016-03-10 14:41:27 -08:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-24 21:17:09 -07:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-02-29 16:12:12 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-02-29 16:12:12 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-03-08 16:52:45 -08:00
2016-03-08 16:52:45 -08:00
2016-03-04 18:16:17 -05:00
2016-02-29 16:12:12 -05:00
2016-03-10 14:41:27 -08:00
2016-03-10 14:41:27 -08:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-22 20:37:46 -07:00
2016-03-08 16:52:45 -08:00
2016-03-04 18:16:17 -05:00
2016-02-29 16:12:12 -05:00
2016-03-04 18:16:17 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-12 11:29:58 -05:00
2016-03-04 18:16:17 -05:00
2016-03-09 14:03:50 -08:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-02 16:29:17 -05:00
2016-02-29 16:12:12 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-03-22 20:37:46 -07:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-04 18:16:17 -05:00
2016-03-08 16:52:45 -08:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-29 16:12:12 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-08 16:52:45 -08:00
2016-03-08 16:52:45 -08:00
2016-02-12 11:29:58 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-29 16:12:12 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-03-24 21:17:09 -07:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-29 16:12:12 -05:00
2016-02-06 19:06:41 -05:00
2016-03-04 18:16:17 -05:00
2016-02-06 19:06:41 -05:00
2016-03-10 14:41:27 -08:00
2016-03-22 20:37:46 -07:00
2016-02-29 16:12:12 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-02-06 19:06:41 -05:00
2016-03-10 14:41:27 -08:00
2016-02-29 19:27:09 -05:00
2016-03-08 16:52:45 -08:00
2016-03-23 20:57:18 -07:00
2016-03-10 14:41:27 -08:00
2015-10-29 17:51:24 +00:00