{"action":"closed","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/6162","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/6162/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/6162/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/6162/events","html_url":"https://github.com/nodejs/node/issues/6162","id":147661243,"number":6162,"title":"require same file twice and exec twice","user":{"login":"zyf0330","id":11958657,"avatar_url":"https://avatars.githubusercontent.com/u/11958657?v=3","gravatar_id":"","url":"https://api.github.com/users/zyf0330","html_url":"https://github.com/zyf0330","followers_url":"https://api.github.com/users/zyf0330/followers","following_url":"https://api.github.com/users/zyf0330/following{/other_user}","gists_url":"https://api.github.com/users/zyf0330/gists{/gist_id}","starred_url":"https://api.github.com/users/zyf0330/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyf0330/subscriptions","organizations_url":"https://api.github.com/users/zyf0330/orgs","repos_url":"https://api.github.com/users/zyf0330/repos","events_url":"https://api.github.com/users/zyf0330/events{/privacy}","received_events_url":"https://api.github.com/users/zyf0330/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T07:36:35Z","updated_at":"2016-04-12T10:05:18Z","closed_at":"2016-04-12T10:05:18Z","body":"<!--\r\nThanks for wanting to report an issue you've found in Node.js. Please fill in\r\nthe template below by replacing the html comments with an appropriate answer.\r\nIf unsure about something, just do as best as you're able.\r\n\r\nversion: usually output of `node -v`\r\nplatform:  either `uname -a` output, or if Windows, version and 32 or 64-bit.\r\nsubsystem:  optional -- if known please specify affected core module name.\r\n\r\nIt will be much easier for us to fix the issue if a test case that reproduces\r\nthe problem is provided. Ideally this test case should not have any external\r\ndependencies. We understand that it is not always possible to reduce your code\r\nto a small test case, but we would appreciate to have as\r\nmuch data as possible.\r\n\r\nThank you!\r\n-->\r\n\r\n* **Version**: 4.4.2\r\n* **Platform**: window \r\n* **Subsystem**: window 10 x64\r\n\r\n<!-- Enter your issue details below this comment. -->\r\nWe know, `require('a')` returns the same object as true result for both A.js and a.js, and it was a bug repaired not long ago. Now, I find something similar but remaining. \r\nI have a file `a.js`, and `require('a')` returns a different object with `require('A')`. I checked `module.id`, and found one of them was `**\\a.js`, another was `**\\A.js`. So the same js executed twice. It's funny."}}