Changeset 216561 in webkit for trunk/Source/JavaScriptCore/runtime/JSBoundFunction.cpp
- Timestamp:
- May 9, 2017, 6:01:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSBoundFunction.cpp
r212015 r216561 192 192 } 193 193 194 JSArray* JSBoundFunction::boundArgsCopy(ExecState* exec) 195 { 196 VM& vm = exec->vm(); 197 auto scope = DECLARE_THROW_SCOPE(vm); 198 JSArray* result = constructEmptyArray(exec, nullptr, globalObject()); 199 RETURN_IF_EXCEPTION(scope, nullptr); 200 for (unsigned i = 0; i < m_boundArgs->length(); ++i) { 201 result->push(exec, m_boundArgs->getIndexQuickly(i)); 202 RETURN_IF_EXCEPTION(scope, nullptr); 203 } 204 return result; 205 } 206 194 207 void JSBoundFunction::finishCreation(VM& vm, NativeExecutable* executable, int length) 195 208 {
Note:
See TracChangeset
for help on using the changeset viewer.