Expose compilerInfo and checkRevision as APIs

Fixes #656
This commit is contained in:
kpdecker
2013-12-23 21:00:59 -06:00
parent 1a751b2f6e
commit bbc7c7d080
3 changed files with 31 additions and 5 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ module Utils from "./utils";
import Exception from "./exception";
import { COMPILER_REVISION, REVISION_CHANGES } from "./base";
function checkRevision(compilerInfo) {
export function checkRevision(compilerInfo) {
var compilerRevision = compilerInfo && compilerInfo[0] || 1,
currentRevision = COMPILER_REVISION;
@@ -89,7 +89,7 @@ export function template(templateSpec, env) {
options.data);
if (!options.partial) {
checkRevision(container.compilerInfo);
env.VM.checkRevision(container.compilerInfo);
}
return result;