feat(web-workers) Add WebWorker Renderer

Allows angular apps to be rendered from the webworker!
Closes #3052, #3053, and #3097
This commit is contained in:
Jason Teplitz
2015-07-10 16:09:18 -07:00
parent 21b988f554
commit 771c0170d9
45 changed files with 3864 additions and 476 deletions

View File

@ -130,6 +130,17 @@ export function stringify(token): string {
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);
}
// serialize / deserialize enum exist only for consistency with dart API
// enums in typescript don't need to be serialized
export function serializeEnum(val): int {
return val;
}
export function deserializeEnum(val, values: Map<int, any>): any {
return val;
}
export class StringWrapper {
static fromCharCode(code: int): string { return String.fromCharCode(code); }