1.1 --- a/src/Interpreter.cpp Sat Dec 29 00:55:38 2012 -0800
1.2 +++ b/src/Interpreter.cpp Tue Jan 01 15:34:07 2013 -0800
1.3 @@ -27,6 +27,7 @@
1.4 #include "Environments.h"
1.5 #include "Structures.h"
1.6 #include "NativeTable.h"
1.7 +#include "Packages.h"
1.8 #include "Heap-inl.h"
1.9
1.10 using namespace ke;
1.11 @@ -866,7 +867,7 @@
1.12 top.sp--;
1.13
1.14 int result;
1.15 - void *nativeIdentity = top.fp->code()->module()->nativeIdentity();
1.16 + void *nativeIdentity = top.fp->code()->module()->parent()->getNativeIdentity();
1.17 if (!InvokeNative(zone, native, nativeIdentity, top.sp, argc, &result))
1.18 goto error;
1.19
1.20 @@ -877,7 +878,7 @@
1.21
1.22 case OP_BITCAST:
1.23 {
1.24 - // Because the stack is a union, this is a no-ops.
1.25 + // Because the stack is a union, this is a no-op.
1.26 break;
1.27 }
1.28