Ignore:
Timestamp:
May 3, 2018, 5:49:04 PM (7 years ago)
Author:
[email protected]
Message:

Invoke ensureArrayStorage for all arguments
https://bugs.webkit.org/show_bug.cgi?id=185247

Patch by Dominik Infuehr <[email protected]> on 2018-05-03
Reviewed by Yusuke Suzuki.

ensureArrayStorage was only invoked for first argument in each loop iteration.

  • jsc.cpp:

(functionEnsureArrayStorage):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r231238 r231339  
    20382038    VM& vm = exec->vm();
    20392039    for (unsigned i = 0; i < exec->argumentCount(); ++i) {
    2040         if (JSObject* object = jsDynamicCast<JSObject*>(vm, exec->argument(0)))
     2040        if (JSObject* object = jsDynamicCast<JSObject*>(vm, exec->argument(i)))
    20412041            object->ensureArrayStorage(vm);
    20422042    }
Note: See TracChangeset for help on using the changeset viewer.