aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-24 16:09:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-24 16:09:28 -0700
commitdd5f2aa4d74f57184bbf0f947a64a2f6925d0bc4 (patch)
tree7ccb84d9728f5cff22731d841a7c28bf60cfb229
parenta81c27d892bf51f6f472c96c44833c0ff5393745 (diff)
parentc22321bcfb48f7130f3ad1872df7f89127dea6ff (diff)
Merge pull request #1090 from inolen/incoming
Persist return value for wrapped functions
-rw-r--r--AUTHORS1
-rw-r--r--src/runtime.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 1c6cf0ec..f0055f2e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -68,3 +68,4 @@ a license to everyone to use it as detailed in LICENSE.)
* Llorens Marti Garcia <lgarcia@imvu.com> (copyright owned by IMVU)
* Jinsuck Kim <jkim@imvu.com> (copyright owned by IMVU)
* Todd Lee <tlee@imvu.com> (copyright owned by IMVU)
+* Anthony Pesch <inolen@gmail.com> \ No newline at end of file
diff --git a/src/runtime.js b/src/runtime.js
index 5b9a8134..5269301c 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -350,7 +350,7 @@ var Runtime = {
assert(sig);
if (!Runtime.funcWrappers[func]) {
Runtime.funcWrappers[func] = function() {
- Runtime.dynCall(sig, func, arguments);
+ return Runtime.dynCall(sig, func, arguments);
};
}
return Runtime.funcWrappers[func];