aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-01 14:04:37 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-01 14:04:37 -0800
commit40ba40ebb65f14bf51a229f4b799164f1c24caaf (patch)
treecbc30fe4d988fd0bcdfedd3bb18a2fd42331f62c /src/jsifier.js
parent6b70b676ba4bdf317c2391e90c82d837b18e3849 (diff)
code cleanup, do not do heavy operations in parameters to print or assert
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 581df37d..3ba725bb 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -213,7 +213,7 @@ function JSify(data, functionsOnly, givenFunctions) {
} else {
throw 'Invalid segment: ' + dump(segment);
}
- assert(segment.type, 'Missing type for constant segment: ' + dump(segment));
+ assert(segment.type, 'Missing type for constant segment!');
return indexizeFunctions(ret, segment.type);
};
return tokens.map(handleSegment)