emscripten-library-decorator
Advanced tools
Comparing version 0.1.4 to 0.1.5
17
index.ts
@@ -49,15 +49,2 @@ // @dep decorator. | ||
function prepareNamespace(name: string) { | ||
return((target: any) => { | ||
var body = __decorate.caller.caller.toString(); | ||
var prefix = new RegExp('^[ (]*function *\\( *' + name + ' *\\) *\\{'); | ||
var suffix = new RegExp('var +' + target.name + ' *= *[^]*$'); | ||
body = (namespaceBodyTbl[name] || '') + body.replace(prefix, '').replace(suffix, ''); | ||
namespaceBodyTbl[name] = body; | ||
}); | ||
} | ||
function exportNamespace(name: string) { | ||
@@ -81,2 +68,4 @@ var exportName = name.substr(1); | ||
mergeInto(LibraryManager.library, lib); | ||
return((target: any) => {}); | ||
} | ||
@@ -88,3 +77,3 @@ | ||
function _defineHidden(value?: any) { | ||
return((target: any, key: string) => { | ||
return((target: Object, key: string) => { | ||
Object.defineProperty(target, key, { | ||
@@ -91,0 +80,0 @@ configurable: false, |
{ | ||
"name": "emscripten-library-decorator", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Decorators for writing Emscripten libraries", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/charto/emscripten-library-decorator", |
5705
73