Changeset 196966 in webkit for trunk/Source/JavaScriptCore/runtime/InternalFunction.cpp
- Timestamp:
- Feb 22, 2016, 4:51:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/InternalFunction.cpp
r196959 r196966 98 98 // Note, Reflect.construct might cause the profile to churn but we don't care. 99 99 JSObject* prototype = jsDynamicCast<JSObject*>(newTarget.get(exec, exec->propertyNames().prototype)); 100 ASSERT(!exec->hadException()); 100 101 if (prototype) 101 102 return targetFunction->rareData(vm)->createInternalFunctionAllocationStructureFromBase(vm, prototype, baseClass); 102 103 } else { 103 104 JSObject* prototype = jsDynamicCast<JSObject*>(newTarget.get(exec, exec->propertyNames().prototype)); 105 if (exec->hadException()) 106 return nullptr; 104 107 if (prototype) { 105 108 // This only happens if someone Reflect.constructs our builtin constructor with another builtin constructor as the new.target.
Note:
See TracChangeset
for help on using the changeset viewer.