Files
node/lib
Sakthipriyan Vairamani c4fadbc15d fs: execute mkdtemp's callback with no context
All the callback functions in `fs` module are supposed to be executed
with no context (`this` value should not be a valid object). But
`mkdtemp`'s callback will have the `FSReqWrap` object as the context.

Sample code to reproduce the problem

    'use strict';

    const fs = require('fs');
    fs.mkdtemp('/tmp/abcd', null, function() {
      console.log(this);
    });

This would print

    FSReqWrap { oncomplete: [Function] }

But that should have printed `null` and this patch fixes that.

PR-URL: https://github.com/nodejs/node/pull/7068
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-06-04 16:31:18 +05:30
..
2015-10-08 17:32:08 -07:00
2016-04-29 16:52:57 -07:00
2016-05-31 09:45:14 -04:00
2016-05-17 11:05:18 -07:00
2016-05-26 11:28:45 +02:00
2016-03-21 15:48:51 -07:00
2016-05-17 11:05:18 -07:00
2016-05-18 02:12:28 -04:00
2016-05-12 10:03:06 -04:00
2016-05-17 11:05:18 -07:00
2016-06-01 18:57:45 -04:00
2016-05-23 12:16:41 +02:00
2015-01-31 23:47:29 -05:00