-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemporary_index_counter_patch.patch
More file actions
28 lines (28 loc) · 3.01 KB
/
temporary_index_counter_patch.patch
File metadata and controls
28 lines (28 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/lib/output.js b/lib/output.js
index 8d63fc6..ea27672 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -1,5 +1,6 @@
"\n**********************************************************************\n\n A RapydScript to JavaScript compiler.\n https://github.com/atsepkov/RapydScript2\n\n -------------------------------- (C) ---------------------------------\n\n Author: Alexander Tsepkov\n <atsepkov@pyjeon.com>\n http://www.pyjeon.com\n\n Distributed under Apache 2.0 license:\n Copyright 2013 (c) Alexander Tsepkov <atsepkov@pyjeon.com>\n\n RapydScript source code is originally based on UglifyJS2 (covered\n by BSD license). UglifyJS2 was written by Mihai Bazon\n <mihai.bazon@gmail.com>, who is its respective copyright holder.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n\n * Redistributions of source code must retain the above\n copyright notice, this list of conditions and the following\n disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials\n provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY\n EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE\n LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\n OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR\n TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF\n THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGE.\n\n **********************************************************************\n";
"use strict";
+var INDEX_COUNTER = 0;
function OutputStream(options) {
var indentation, current_col, current_line, current_pos, OUTPUT, IMPORTED, might_need_space, might_need_semicolon, last, requireSemicolonChars, space, indent, with_indent, newline, semicolon, add_mapping, stack;
options = defaults(options, {
@@ -635,7 +636,7 @@ function OutputStream(options) {
};
}
(function() {
- var SPECIAL_METHODS, INDEX_COUNTER;
+ var SPECIAL_METHODS;
SPECIAL_METHODS = {
bind: "_$rapyd$_bind",
rebind_all: "_$rapyd$_rebindAll",
@@ -645,7 +646,6 @@ function OutputStream(options) {
mixin: "_$rapyd$_mixin",
print: "_$rapyd$_print"
};
- INDEX_COUNTER = 0;
function DEFPRINT(nodetype, generator) {
nodetype.DEFMETHOD("_codegen", generator);
}