Ignore:
Timestamp:
Jun 4, 2014, 2:54:46 PM (11 years ago)
Author:
[email protected]
Message:

ArrayIterator should not be exposed in Safari 8
https://bugs.webkit.org/show_bug.cgi?id=133494

Reviewed by Michael Saboff.

Source/JavaScriptCore:
Separate out types that require constructor objects, and don't
include the iterator types in that list.

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::reset):

  • runtime/JSGlobalObject.h:

LayoutTests:
Add tests.

  • js/no-iterator-constructors.html: Added.
  • js/script-tests/no-iterator-constructors.js: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp

    r168443 r169598  
    422422    putDirectWithoutTransition(vm, vm.propertyNames-> jsName, lowerName ## Constructor, DontEnum); \
    423423
    424     FOR_EACH_SIMPLE_BUILTIN_TYPE(PUT_CONSTRUCTOR_FOR_SIMPLE_TYPE)
     424    FOR_EACH_SIMPLE_BUILTIN_TYPE_WITH_CONSTRUCTOR(PUT_CONSTRUCTOR_FOR_SIMPLE_TYPE)
    425425
    426426#undef PUT_CONSTRUCTOR_FOR_SIMPLE_TYPE
Note: See TracChangeset for help on using the changeset viewer.