Add two missing natives needed for testing so we can runt with release = false.

This commit is contained in:
Brendan Dahl 2015-01-06 17:29:40 -08:00
Родитель bd9cd9bebd
Коммит 6b4232af56
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -302,6 +302,14 @@ Native["com/ibm/oti/connection/file/Connection.setHiddenImpl.([BZ)V"] = function
console.warn("Connection.setHiddenImpl.([BZ)V not implemented (" + util.decodeUtf8(path) + ")");
};
Native["com/ibm/oti/connection/file/Connection.setReadOnlyImpl.([BZ)V"] = function(path, value) {
console.warn("Connection.setReadOnlyImpl.([BZ)V not implemented (" + util.decodeUtf8(path) + ")");
};
Native["com/ibm/oti/connection/file/Connection.setWriteOnlyImpl.([BZ)V"] = function(path, value) {
console.warn("Connection.setWriteOnlyImpl.([BZ)V not implemented (" + util.decodeUtf8(path) + ")");
};
Native["com/ibm/oti/connection/file/Connection.existsImpl.([B)Z"] = function(path) {
asyncImpl("Z", new Promise(function(resolve, reject) {
fs.exists(getAbsolutePath(path), function(exists) { resolve(exists ? 1 : 0); } );