aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-06 22:20:22 -0500
committerAlon Zakai <alonzakai@gmail.com>2014-02-06 22:20:22 -0500
commit6b25b9bc9deaafc093397e436ef8360f79754af7 (patch)
tree89bf43c516f5f1bdb41e95fe70a6da6751ec2f38 /src
parent7a63da01635ec01a09fad2cb3cbb0d7427664f3e (diff)
fix constant generation bug due to 3605f8cc
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index ab10f455..ef15088e 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -325,7 +325,7 @@ function JSify(data, functionsOnly) {
// NOTE: This is the only place that could potentially create static
// allocations in a shared library.
- if (typeof constant === 'object') {
+ if (typeof constant !== 'string') {
constant = makePointer(constant, null, allocator, item.type, index);
}