Ignore:
Timestamp:
Feb 16, 2009, 4:40:39 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-02-16 Sam Weinig <[email protected]>

Reviewed by Geoffrey Garen.

Fix for <rdar://problem/6468156>
REGRESSION (r36779): Adding link, images, flash in TinyMCE blocks entire page (21382)

No performance regression.

  • runtime/Arguments.cpp: (JSC::Arguments::fillArgList): Add codepath for when the "length" property has been overridden.

LayoutTests:

2009-02-16 Sam Weinig <[email protected]>

Reviewed by Geoffrey Garen.

Add tests for <rdar://problem/6468156>
REGRESSION (r36779): Adding link, images, flash in TinyMCE blocks entire page (21382)

  • fast/js/function-apply-expected.txt:
  • fast/js/resources/function-apply.js: Add cases covering setting arugments.length and Array.length explicitly or implicitly using Array.prototype.unshift.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Arguments.cpp

    r39670 r41028  
    7272void Arguments::fillArgList(ExecState* exec, ArgList& args)
    7373{
     74    if (UNLIKELY(d->overrodeLength)) {
     75        unsigned length = get(exec, exec->propertyNames().length).toUInt32(exec);
     76        for (unsigned i = 0; i < length; i++)
     77            args.append(get(exec, i));
     78        return;
     79   }
     80
    7481    if (LIKELY(!d->deletedArguments)) {
    7582        if (LIKELY(!d->numParameters)) {
Note: See TracChangeset for help on using the changeset viewer.