mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
This was "npm update handlebars" followed by copying runtime.js into the static directory and restoring the copyright header. (imported from commit 69d30cbfcb3b776cdfdcffa17a87704540eab76a)
19 lines
499 B
JavaScript
19 lines
499 B
JavaScript
define(
|
|
["./parser","./ast","exports"],
|
|
function(__dependency1__, __dependency2__, __exports__) {
|
|
"use strict";
|
|
var parser = __dependency1__["default"];
|
|
var AST = __dependency2__["default"];
|
|
|
|
__exports__.parser = parser;
|
|
|
|
function parse(input) {
|
|
// Just return if an already-compile AST was passed in.
|
|
if(input.constructor === AST.ProgramNode) { return input; }
|
|
|
|
parser.yy = AST;
|
|
return parser.parse(input);
|
|
}
|
|
|
|
__exports__.parse = parse;
|
|
}); |