Remove remnant from deferred error formatting on GC.
Deferred error formatting on GC was a failed experiment. It has been removed, except for this part. See r13371. R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/233163004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20672 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f1c2b7007d
commit
1267b43072
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user