aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-19 10:20:55 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-19 10:20:55 -0700
commit9e5680bcc0c14924b060a6d2bb609bcae5b4d62c (patch)
treeb71e951374eb24f8dd052f9952bcf41fbbb2b0ea /src/runtime.js
parent97c679e6ff1c8d0617537ce286d22159af67a264 (diff)
IE fixes
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 816d864f..dd14e779 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -187,7 +187,7 @@ var Runtime = {
"%double": 8
}['%'+type]; // add '%' since float and double confuse Closure compiler as keys, and also spidermonkey as a compiler will remove 's from '_i8' etc
if (!size) {
- if (type[type.length-1] == '*') {
+ if (type.charAt(type.length-1) == '*') {
size = Runtime.QUANTUM_SIZE; // A pointer
} else if (type[0] == 'i') {
var bits = parseInt(type.substr(1));