aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-08 21:03:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-08 21:03:07 -0700
commit534cc7f05846daa88f2d3f2d149d9768262033e9 (patch)
tree433d68e45b1a94fb642d47a8065d726eebe8e69f /src
parenta70b811afca7ea85792e72f72d7211fa3b5e731b (diff)
bindings generator fix +fixes for use of |this| instead of Module
Diffstat (limited to 'src')
-rw-r--r--src/preamble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 8ab9bce8..35bb75d7 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -320,7 +320,7 @@ function setValue(ptr, value, type) {
default: abort('invalid type for setValue: ' + type);
}
}
-this['setValue'] = setValue;
+Module['setValue'] = setValue;
// Parallel to setValue.
@@ -338,7 +338,7 @@ function getValue(ptr, type) {
}
return null;
}
-this['getValue'] = getValue;
+Module['getValue'] = getValue;
// Allocates memory for some data and initializes it properly.