js2c: fix module id generation on windows
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 27 Mar 2015 00:07:07 +0000 (01:07 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 27 Mar 2015 10:10:25 +0000 (11:10 +0100)
commit36f017afaf034ff858b86ad0655032b229d9c8f8
tree1b4317e62f738821078ff11d977d294811573bee
parent2903410aa8393a73dfbc75c5a9ba31c21ccb70dc
js2c: fix module id generation on windows

Fix a regression that was introduced in commit 2db758c ("iojs: introduce
internal modules") where the computed id for "config.gypi" on Windows
was not "config" but an empty string.

With an empty string, the build succeeds but the binary is unusable:
startup.processConfig() in src/node.js chokes on the missing .config
property.

PR-URL: https://github.com/iojs/io.js/pull/1281
Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
tools/js2c.py