Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 0c6cbd37b4ef08795b1292ed8a2d7986c2394f49..703b7902dece58e05f2edfe203db24c9a7515008 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -175,14 +175,6 @@ Handle<JSValue> GetScriptWrapper(Handle<Script> script) { |
Handle<JSValue> result = |
Handle<JSValue>::cast(isolate->factory()->NewJSObject(constructor)); |
- // The allocation might have triggered a GC, which could have called this |
- // function recursively, and a wrapper has already been created and cached. |
- // In that case, simply return a handle for the cached wrapper. |
- if (script->wrapper()->foreign_address() != NULL) { |
- return Handle<JSValue>( |
- *reinterpret_cast<JSValue**>(script->wrapper()->foreign_address())); |
- } |
- |
result->set_value(*script); |
// Create a new weak global handle and use it to cache the wrapper |