Skip to content

Commit

Permalink
Imported path.js and string_coder.js libs from Node.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebloss committed Mar 7, 2012
1 parent 69e9dcf commit 0e4ef80
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 0 deletions.
4 changes: 4 additions & 0 deletions win/gel.exe/NativesApi.cs
Expand Up @@ -28,5 +28,9 @@ public bool hasOwnProperty(string id)
public string events { get { return GetCode("events"); } }

public string stream { get { return GetCode("stream"); } }

public string path { get { return GetCode("path"); } }

public string string_decoder { get { return GetCode("string_decoder"); } }
}
}
2 changes: 2 additions & 0 deletions win/gel.exe/gel.csproj
Expand Up @@ -108,6 +108,8 @@
<EmbeddedResource Include="ddr-ecma5.js" />
<EmbeddedResource Include="json2.js" />
<EmbeddedResource Include="lib\stream.js" />
<EmbeddedResource Include="lib\path.js" />
<EmbeddedResource Include="lib\string_decoder.js" />
<Content Include="ref\process.js" />
<EmbeddedResource Include="native_module.js" />
<EmbeddedResource Include="console.js" />
Expand Down
6 changes: 6 additions & 0 deletions win/gel.exe/gel.js
Expand Up @@ -40,6 +40,12 @@ var global;

startup.printEngineVer();

var path = NativeModule.require('path');
var ext = path.extname('boo/boo/boo.js');
console.log('ext: ' + ext);

var sd = NativeModule.require('string_decoder');

process.on('exit', function() {
console.log('exiting!!!!!!!!!!!!!!!!!!');
});
Expand Down

0 comments on commit 0e4ef80

Please sign in to comment.