Index: src/handles.cc |
=================================================================== |
--- src/handles.cc (revision 2368) |
+++ src/handles.cc (working copy) |
@@ -372,10 +372,10 @@ |
Handle<JSValue> GetScriptWrapper(Handle<Script> script) { |
- Handle<Object> cache(reinterpret_cast<Object**>(script->wrapper()->proxy())); |
- if (!cache.is_null()) { |
+ if (script->wrapper()->proxy() != NULL) { |
// Return the script wrapper directly from the cache. |
- return Handle<JSValue>(JSValue::cast(*cache)); |
+ return Handle<JSValue>( |
+ reinterpret_cast<JSValue**>(script->wrapper()->proxy())); |
} |
// Construct a new script wrapper. |